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]

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


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
-mike

Attachment: pgp00000.pgp
Description: PGP signature

2007-02-19  Mike Frysinger  <vapier@gentoo.org>

	* doc/invoke.texi (-Wattributes): Change documentation to refer to
	-Wattributes rather than -Wno-attributes.

--- trunk/gcc/doc/invoke.texi	(revision 121946)
+++ trunk/gcc/doc/invoke.texi	(working copy)
@@ -224,7 +224,7 @@ Objective-C and Objective-C++ Dialects}.
 @xref{Warning Options,,Options to Request or Suppress Warnings}.
 @gccoptlist{-fsyntax-only  -pedantic  -pedantic-errors @gol
 -w  -Wextra  -Wall  -Waggregate-return -Walways-true -Warray-bounds @gol
--Wno-attributes -Wc++-compat -Wc++0x-compat -Wcast-align  -Wcast-qual  @gol
+-Wattributes -Wc++-compat -Wc++0x-compat -Wcast-align  -Wcast-qual  @gol
 -Wchar-subscripts -Wclobbered  -Wcomment @gol
 -Wconversion -Wcoverage-mismatch -Wno-deprecated-declarations @gol
 -Wdisabled-optimization  -Wno-div-by-zero  @gol
@@ -3393,13 +3393,12 @@ Warn about comparisons which are always 
 unsigned values are greater than or equal to zero.  This warning is
 enabled by @option{-Wall}.
 
-@item -Wno-attributes
+@item -Wattributes
 @opindex Wno-attributes
 @opindex Wattributes
-Do not warn if an unexpected @code{__attribute__} is used, such as
-unrecognized attributes, function attributes applied to variables,
-etc.  This will not stop errors for incorrect use of supported
-attributes.
+Warn if an unexpected @code{__attribute__} is used, such as unrecognized
+attributes, function attributes applied to variables, etc.  This does not
+affect errors for incorrect use of supported attributes.
 
 @item -Wstrict-prototypes @r{(C only)}
 @opindex Wstrict-prototypes

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