Re: GCC Warnings and errors
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