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 11:38:34 -0700
On Sep 18, 2006, at 11:28 AM, Cameron Hayne wrote:
On 18-Sep-06, at 1:24 AM, Steve Christensen wrote:
Does some documentation exist someplace that maps a warning
message seen in Xcode into the corresponding warning setting
checkbox in the build settings or some other gcc flag I can use to
turn specific warnings on/off? It seems like that would be really
helpful versus trying to search for just the right term that will
yield up an answer.
For my current situation I just inherited some code and an Xcode
project, and when I build it, I get a ton of warnings of the form:
warning: argument to 'long int' from 'float'
warning: assignment to 'long int' from 'float'
warning: passing 'float' for argument 1 of 'void foo(long int, ...)
The man page for gcc is probably the best you'll get.
Looking at that man page, I think that the gcc option relevant to
the above warnings is: -Wconversion
Thanks. I found that after a bit more searching around.
But I wouldn't recommend turning this off. Instead you should add
in the casts necessary to make the programmer's intention clear.
Oh, I know and do that in my own source. 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... :-/
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