This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[doc-patch] invoke.texi: clean up warning options section
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Sep 2003 01:19:38 +0200 (CEST)
- Subject: [doc-patch] invoke.texi: clean up warning options section
- Reply-to: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following patch
* adds a missing hyphen before "Wimport",
* changes "-Wno-endif-labels" to "-Wendif-labels"
(as used in the rest of the documentation),
* moves "-Wold-style-definition" to the C-only section,
* and fixes the ordering of the warning options.
Committed to mainline as obvious.
Regards,
Volker
2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* doc/invoke.texi (Warning Options): Add missing hyphen before
"Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
Move "-Wold-style-definition" to the C-only section.
Fix the ordering of the warning options.
Index: invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.337
diff -c -p -r1.337 invoke.texi
*** invoke.texi 15 Sep 2003 09:31:17 -0000 1.337
--- invoke.texi 15 Sep 2003 23:08:31 -0000
*************** in the following sections.
*** 208,226 ****
-w -Wextra -Wall -Waggregate-return @gol
-Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment @gol
-Wconversion -Wno-deprecated-declarations @gol
! -Wdisabled-optimization -Wno-div-by-zero -Werror @gol
-Wfloat-equal -Wformat -Wformat=2 @gol
! -Wformat-nonliteral -Wformat-security @gol
! -Wimplicit -Wimplicit-int @gol
! -Wimplicit-function-declaration @gol
! -Werror-implicit-function-declaration @gol
! -Winit-self Wimport -Winline -Winvalid-pch -Wno-endif-labels @gol
! -Wno-invalid-offsetof @gol
-Wlarger-than-@var{len} -Wlong-long @gol
-Wmain -Wmissing-braces @gol
-Wmissing-format-attribute -Wmissing-noreturn @gol
! -Wno-multichar -Wno-format-extra-args -Wno-format-y2k @gol
! -Wno-import -Wnonnull -Wold-style-definition -Wpacked -Wpadded @gol
-Wparentheses -Wpointer-arith -Wredundant-decls @gol
-Wreturn-type -Wsequence-point -Wshadow @gol
-Wsign-compare -Wstrict-aliasing @gol
--- 208,225 ----
-w -Wextra -Wall -Waggregate-return @gol
-Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment @gol
-Wconversion -Wno-deprecated-declarations @gol
! -Wdisabled-optimization -Wno-div-by-zero -Wendif-labels @gol
! -Werror -Werror-implicit-function-declaration @gol
-Wfloat-equal -Wformat -Wformat=2 @gol
! -Wno-format-extra-args -Wformat-nonliteral @gol
! -Wformat-security -Wno-format-y2k @gol
! -Wimplicit -Wimplicit-function-declaration -Wimplicit-int @gol
! -Wimport -Wno-import -Winit-self -Winline @gol
! -Wno-invalid-offsetof -Winvalid-pch @gol
-Wlarger-than-@var{len} -Wlong-long @gol
-Wmain -Wmissing-braces @gol
-Wmissing-format-attribute -Wmissing-noreturn @gol
! -Wno-multichar -Wnonnull -Wpacked -Wpadded @gol
-Wparentheses -Wpointer-arith -Wredundant-decls @gol
-Wreturn-type -Wsequence-point -Wshadow @gol
-Wsign-compare -Wstrict-aliasing @gol
*************** in the following sections.
*** 232,238 ****
@item C-only Warning Options
@gccoptlist{-Wbad-function-cast -Wmissing-declarations @gol
! -Wmissing-prototypes -Wnested-externs @gol
-Wstrict-prototypes -Wtraditional @gol
-Wdeclaration-after-statement}
--- 231,237 ----
@item C-only Warning Options
@gccoptlist{-Wbad-function-cast -Wmissing-declarations @gol
! -Wmissing-prototypes -Wnested-externs -Wold-style-definition @gol
-Wstrict-prototypes -Wtraditional @gol
-Wdeclaration-after-statement}
===================================================================