Re: mapping warning messages to build settings?
Re: mapping warning messages to build settings?
- Subject: Re: mapping warning messages to build settings?
- From: Steve Christensen <email@hidden>
- Date: Mon, 18 Sep 2006 14:02:37 -0700
On Sep 18, 2006, at 12:19 PM, Cameron Hayne wrote:
On 18-Sep-06, at 2:38 PM, Steve Christensen wrote:
It looks like these particular sources were written awhile ago and
don't do all that much casting. And I don't yet have a good enough
grasp of the whole thing to figure out why they casted where they
did. This leaves me with at least a couple hundred warnings. I was
hoping to cut down the noise a bit to see what else really should
be fixed...
Of course you could just remove the -Wconversion warning
temporarily so you could go on to more important things, but I
would recommend instead *adding* to the "noise" by inserting code
at each of the places you get a warning to print out the value
being passed if it differs from what you would get via proper casting.
E.g. something like:
if ((long int)floatVal != floatVal) NSLog(@"Passed value (%f)
truncated to int in function foo", floatVal);
Well, except that I don't have -Wconversion specified anyplace that I
can find. None of the build setting checkboxes appear to control it,
nor do I find any other mention of it in the project. I did end up
biting the bullet and just going through and adding specific casts so
it's not so much of an issue now...
steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden