• 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: GCC Warnings and errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC Warnings and errors


  • Subject: Re: GCC Warnings and errors
  • From: David Fang <email@hidden>
  • Date: Thu, 31 May 2007 00:17:24 -0400 (EDT)

> > Are there any settings for gcc and Xcode, that will allow treating
> > only SOME warnings as errors?
>
> Only one: -Werror-implicit-function-declaration

Hi,

Maybe not helpful with Apple's current gcc-4.0.x, but if you change the
compiler to (FSF) gcc-4.2 or higher, you can now downgrade Werror on all
(?)  individial warnings via -Wno-error=<switch>.  e.g. -Wno-error=unused.
You can also promote individual warnings to errors with -Werror=<switch>.

You might even use 4.2 just for the sake of such checking, while
leaving Apple's gcc as the main workhorse compiler (with more forgiving
warnings), for instance.

Fang

 _______________________________________________
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

References: 
 >Re: GCC Warnings and errors (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Building gcc on Mac
  • Next by Date: GenerateDSYMFile randomly failing when nothing needs compiling
  • Previous by thread: Re: GCC Warnings and errors
  • Next by thread: associate an Executable with an Aggregate Target?
  • Index(es):
    • Date
    • Thread