* -Werror for certain warnings?
@ 2006-11-08 4:01 Erik
2006-11-08 12:34 ` John Love-Jensen
0 siblings, 1 reply; 3+ messages in thread
From: Erik @ 2006-11-08 4:01 UTC (permalink / raw)
To: gcc-help
"info:/gcc/Warning Options" mentions -Werror, that treats all warnings
as errors and -Werror-implicit-function-declaration, which treats
implicit function declarations as errors but it does not mention how to
treat other certain kinds of warnings as errors. For example
-Werror-shadow does not work. How is it supposed to be done?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -Werror for certain warnings?
2006-11-08 4:01 -Werror for certain warnings? Erik
@ 2006-11-08 12:34 ` John Love-Jensen
2006-11-10 3:40 ` David Fang
0 siblings, 1 reply; 3+ messages in thread
From: John Love-Jensen @ 2006-11-08 12:34 UTC (permalink / raw)
To: Erik, MSX to GCC
Hi Erik,
> 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.
HTH,
--Eljay
* Always the possibility that I may be mistaken.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -Werror for certain warnings?
2006-11-08 12:34 ` John Love-Jensen
@ 2006-11-10 3:40 ` David Fang
0 siblings, 0 replies; 3+ messages in thread
From: David Fang @ 2006-11-10 3:40 UTC (permalink / raw)
To: John Love-Jensen; +Cc: Erik, MSX to GCC
> > 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-10 3:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-08 4:01 -Werror for certain warnings? Erik
2006-11-08 12:34 ` John Love-Jensen
2006-11-10 3:40 ` David Fang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).