-Werror for certain warnings?
David Fang
fang@csl.cornell.edu
Fri Nov 10 03:40:00 GMT 2006
> > How is [treating specific warnings as errors] supposed to be done?
>
> Enable just the warnings you want to be treated as errors and use the
> -Werror switch.
>
> I do not believe* there is the ability to promote specific warnings (other
> than -Werror-implicit-function-declaration) to be treated as errors.
>
> That would be a nice enhancement to GCC.
Hi,
It looks like it's implemented in 4.2. [1]
-Werror=blah (implies -Wblah)
-Wno-error=blah (only guarantees not promoted to error)
[1] http://gcc.gnu.org/bugzilla//show_bug.cgi?id=29768
I know Erik is already CC'd on that PR, but for the benefit for anyone who
wanders across this thread...
> HTH,
> --Eljay
>
> * Always the possibility that I may be mistaken.
Fang
More information about the Gcc-help
mailing list