This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] invert -Wno-attributes logic to talk about -Wattributes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]