diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2017-01-07 17:37:55 -0500 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2017-01-07 17:37:55 -0500 |
commit | ec85a97831b1818e65ef2797781c27a511f68c24 (patch) | |
tree | 3dbd6e31708be21742165f23453422a1f321e5ac /gcc/doc/cppwarnopts.texi | |
parent | 5ccf1d8d1073544f3d3c24e2168fc12e983dfa47 (diff) | |
download | gcc-ec85a97831b1818e65ef2797781c27a511f68c24.zip gcc-ec85a97831b1818e65ef2797781c27a511f68c24.tar.gz gcc-ec85a97831b1818e65ef2797781c27a511f68c24.tar.bz2 |
cppdiropts.texi: Merge documentation of -I, -iquote, -isystem, and -idirafter.
2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* doc/cppdiropts.texi: Merge documentation of -I, -iquote,
-isystem, and -idirafter. Copy-edit.
* doc/cppopts.texi: Copy-edit. Remove contradiction about
default for -ftrack-macro-expansion. Delete obsolete and
badly-formatted implementation details about -fdebug-cpp output.
* doc/cppwarnopts.texi: Copy-edit.
From-SVN: r244200
Diffstat (limited to 'gcc/doc/cppwarnopts.texi')
-rw-r--r-- | gcc/doc/cppwarnopts.texi | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/doc/cppwarnopts.texi b/gcc/doc/cppwarnopts.texi index 0dc2a1e..35761e3 100644 --- a/gcc/doc/cppwarnopts.texi +++ b/gcc/doc/cppwarnopts.texi @@ -46,14 +46,14 @@ This warning is also enabled by @option{-Wpedantic} and @option{-Wextra}. @opindex 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 will also warn if the macro has not been used at the +The preprocessor also warns if the macro has not been used at the time it is redefined or undefined. Built-in macros, macros defined on the command line, and macros defined in include files are not warned about. @emph{Note:} If a macro is actually used, but only used in skipped -conditional blocks, then CPP will report it as unused. To avoid the +conditional blocks, then the preprocessor reports it as unused. To avoid the warning in such a case, you might improve the scope of the macro's definition by, for example, moving it into the first skipped block. Alternatively, you could provide a dummy use with something like: @@ -67,7 +67,7 @@ Alternatively, you could provide a dummy use with something like: @opindex Wno-endif-labels @opindex Wendif-labels Do not warn whenever an @code{#else} or an @code{#endif} are followed by text. -This usually happens in code of the form +This sometimes happens in older programs with code of the form @smallexample #if FOO @@ -78,6 +78,5 @@ This usually happens in code of the form @end smallexample @noindent -The second and third @code{FOO} should be in comments, but often are not -in older programs. This warning is on by default. - +The second and third @code{FOO} should be in comments. +This warning is on by default. |