This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: should we use -Werror? (& sample patch to do it)
- To: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Subject: Re: RFC: should we use -Werror? (& sample patch to do it)
- From: lucier at math dot purdue dot edu
- Date: Wed, 5 Sep 2001 22:35:54 -0500 (EST)
- Cc: lucier at math dot purdue dot edu
Zack Weinberg wrote:
> The reason I'm not convinced that -Werror would be a good idea even
> after we get to zero warnings, is that the existing set of warnings
> have been around for a very long time because they're both harmless
> and intractable. (Harmless, in the sense that I am fairly sure the
> code is in all cases correct, just pulling dubious tricks.)
I don't think this is true, see, e.g., today's warning on sparc-sun-solaris28:
../../gcc/cp/class.c:6770: warning: int format, different type arg (arg 3)
These types of problems (e.g., printing a HOST_WIDE_INT as an int) are added
all the time, quite often in debug code, and I don't think the code is correct.
Brad Lucier