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 14:28:06 -0400
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
But I wouldn't recommend turning this off. Instead you should add in
the casts necessary to make the programmer's intention clear.
--
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