This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: should we use -Werror? (& sample patch to do it)
- To: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: Re: RFC: should we use -Werror? (& sample patch to do it)
- From: Dan Nicolaescu <dann at godzilla dot ICS dot UCI dot EDU>
- Date: Wed, 05 Sep 2001 20:54:41 -0700
What about changing -Werror to be a little bit more fine grained: so
it would be possible to specify exactly which warnings would be
errors.
Something like -Werror=LIST_OF_WARNINGS_THAT_SHOULD_GENERATE_ERRORS
or -WWARNING_NAME=error
Then we could turn on -Werror for all the un-controversial warnings,
that don't generate false positives, like -Wformat,
-Wstrict-prototypes, etc.
(currently we have fine grained control for warnings, but not for
-Werror).
Just my 2 cents
--dan