Re: mapping warning messages to build settings?
Re: mapping warning messages to build settings?
- Subject: Re: mapping warning messages to build settings?
- From: Cameron Hayne <email@hidden>
- Date: Mon, 18 Sep 2006 15:19:26 -0400
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);
--
Cameron Hayne
email@hidden
_______________________________________________
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