initial import
[patches.git] / gcc-invert-Wattributes-doc.patch
1 2007-02-19 Mike Frysinger <vapier@gentoo.org>
2
3 * doc/invoke.texi (-Wattributes): Change documentation to refer to
4 -Wattributes rather than -Wno-attributes.
5
6 --- trunk/gcc/doc/invoke.texi (revision 121946)
7 +++ trunk/gcc/doc/invoke.texi (working copy)
8 @@ -224,7 +224,7 @@ Objective-C and Objective-C++ Dialects}.
9 @xref{Warning Options,,Options to Request or Suppress Warnings}.
10 @gccoptlist{-fsyntax-only -pedantic -pedantic-errors @gol
11 -w -Wextra -Wall -Waggregate-return -Walways-true -Warray-bounds @gol
12 --Wno-attributes -Wc++-compat -Wc++0x-compat -Wcast-align -Wcast-qual @gol
13 +-Wattributes -Wc++-compat -Wc++0x-compat -Wcast-align -Wcast-qual @gol
14 -Wchar-subscripts -Wclobbered -Wcomment @gol
15 -Wconversion -Wcoverage-mismatch -Wno-deprecated-declarations @gol
16 -Wdisabled-optimization -Wno-div-by-zero @gol
17 @@ -3393,13 +3393,12 @@ Warn about comparisons which are always
18 unsigned values are greater than or equal to zero. This warning is
19 enabled by @option{-Wall}.
20
21 -@item -Wno-attributes
22 +@item -Wattributes
23 @opindex Wno-attributes
24 @opindex Wattributes
25 -Do not warn if an unexpected @code{__attribute__} is used, such as
26 -unrecognized attributes, function attributes applied to variables,
27 -etc. This will not stop errors for incorrect use of supported
28 -attributes.
29 +Warn if an unexpected @code{__attribute__} is used, such as unrecognized
30 +attributes, function attributes applied to variables, etc. This does not
31 +affect errors for incorrect use of supported attributes.
32
33 @item -Wstrict-prototypes @r{(C only)}
34 @opindex Wstrict-prototypes