aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/cppwarnopts.texi
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2023-02-23 02:06:49 +0100
committerGerald Pfeifer <gerald@pfeifer.com>2023-02-23 02:08:10 +0100
commitddf6fe375d91100ae067d2015baea744396aba4e (patch)
tree997c73acfdc6c11ba6463ea2f4b78343d8b1e3f6 /gcc/doc/cppwarnopts.texi
parentb6f98991b147726e8bd883ab66d188e90cfb12c3 (diff)
downloadgcc-ddf6fe375d91100ae067d2015baea744396aba4e.zip
gcc-ddf6fe375d91100ae067d2015baea744396aba4e.tar.gz
gcc-ddf6fe375d91100ae067d2015baea744396aba4e.tar.bz2
docs: Reorder @opindex before corresponding options
gcc/d/ChangeLog: * gdc.texi: Reorder @opindex commands to precede @items they relate to. gcc/ChangeLog: * doc/cppdiropts.texi: Reorder @opindex commands to precede @items they relate to. * doc/cppopts.texi: Ditto. * doc/cppwarnopts.texi: Ditto. * doc/invoke.texi: Ditto. * doc/lto.texi: Ditto. gcc/fortran/ChangeLog: * invoke.texi: Reorder @opindex commands to precede @items they relate to.
Diffstat (limited to 'gcc/doc/cppwarnopts.texi')
-rw-r--r--gcc/doc/cppwarnopts.texi14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/doc/cppwarnopts.texi b/gcc/doc/cppwarnopts.texi
index 29fba13..ab17ecb 100644
--- a/gcc/doc/cppwarnopts.texi
+++ b/gcc/doc/cppwarnopts.texi
@@ -9,16 +9,16 @@
@c If this file is included with the flag ``cppmanual'' set, it is
@c formatted for inclusion in the CPP manual; otherwise the main GCC manual.
-@item -Wcomment
-@itemx -Wcomments
@opindex Wcomment
@opindex Wcomments
+@item -Wcomment
+@itemx -Wcomments
Warn whenever a comment-start sequence @samp{/*} appears in a @samp{/*}
comment, or whenever a backslash-newline appears in a @samp{//} comment.
This warning is enabled by @option{-Wall}.
-@item -Wtrigraphs
@opindex Wtrigraphs
+@item -Wtrigraphs
@anchor{Wtrigraphs}
Warn if any trigraphs are encountered that might change the meaning of
the program. Trigraphs within comments are not warned about,
@@ -29,21 +29,21 @@ given, this option is still enabled unless trigraphs are enabled. To
get trigraph conversion without warnings, but get the other
@option{-Wall} warnings, use @samp{-trigraphs -Wall -Wno-trigraphs}.
-@item -Wundef
@opindex Wundef
@opindex Wno-undef
+@item -Wundef
Warn if an undefined identifier is evaluated in an @code{#if} directive.
Such identifiers are replaced with zero.
-@item -Wexpansion-to-defined
@opindex Wexpansion-to-defined
+@item -Wexpansion-to-defined
Warn whenever @samp{defined} is encountered in the expansion of a macro
(including the case where the macro is expanded by an @samp{#if} directive).
Such usage is not portable.
This warning is also enabled by @option{-Wpedantic} and @option{-Wextra}.
-@item -Wunused-macros
@opindex Wunused-macros
+@item -Wunused-macros
Warn about macros defined in the main file that are unused. A macro
is @dfn{used} if it is expanded or tested for existence at least once.
The preprocessor also warns if the macro has not been used at the
@@ -63,9 +63,9 @@ Alternatively, you could provide a dummy use with something like:
#endif
@end smallexample
-@item -Wno-endif-labels
@opindex Wno-endif-labels
@opindex Wendif-labels
+@item -Wno-endif-labels
Do not warn whenever an @code{#else} or an @code{#endif} are followed by text.
This sometimes happens in older programs with code of the form