• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mapping warning messages to build settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: mapping warning messages to build settings?
      • From: Steve Christensen <email@hidden>
References: 
 >mapping warning messages to build settings? (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: No new line at the end of file
  • Next by Date: Re: mapping warning messages to build settings?
  • Previous by thread: mapping warning messages to build settings?
  • Next by thread: Re: mapping warning messages to build settings?
  • Index(es):
    • Date
    • Thread