This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] invert -Wno-attributes logic to talk about -Wattributes
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 Feb 2007 18:20:59 +0000 (UTC)
- Subject: Re: [patch] invert -Wno-attributes logic to talk about -Wattributes
- References: <200702191310.14532.vapier@gentoo.org>
On Mon, 19 Feb 2007, Mike Frysinger wrote:
> the current documentation lists out a whole bunch of -W flags and then says
> for -Wall "enables everything mentioned above" ... this is incorrect as above
> it talks about -Wno-attributes rather than -Wattributes
>
> attached patch inverts the documentation to discuss -Wattributes rather
> than -Wno-attributes so as to be consistent with the rest of the document and
> so the -Wall statement is correct
It doesn't make it correct.
-Wattributes is on by default, it is not enabled by -Wall. That's why
-Wno-attributes is what is documented, because "gcc -Wattributes" means
nothing different from plain "gcc" but "gcc -Wno-attributes" is different
from plain "gcc".
Options to disable warnings on by default might better moved to a
different section, not above -Wall.
--
Joseph S. Myers
joseph@codesourcery.com