Shun87 / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Generated code in NSDate+ISO8601Parsing.m compiles with warning for Release. #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the wsdl2objc tool on some WSDL file.
2. Include the generated NSDate+ISO8601Parsing.m file in an Xcode project.
3. Compile using 10.6 *Release*

What is the expected output?
No warnings.

What do you see instead?

NSDate+ISO8601Parsing.m:205: warning: 'start_of_date' may be used uninitialized 
in this 
function

What version of the product are you using? On what operating system?
Version r161 on Mac OS X 10.6.3

Please provide any additional information below.

A workaround for me was to change:

  NSRange range = { 0U, 0U };
  const unsigned char *start_of_date;

to:

  NSRange range = { 0U, 0U };
  const unsigned char *start_of_date = 0;

Original issue reported on code.google.com by gershon....@gmail.com on 9 May 2010 at 1:54

GoogleCodeExporter commented 8 years ago
Good catch, sorry it took so long to fix this little thing.
Fixed in revision 186.

Original comment by hasse...@gmail.com on 4 Mar 2011 at 6:35