aboutsummaryrefslogtreecommitdiff
path: root/gcc/invoke.texi
diff options
context:
space:
mode:
authorNick Clifton <nickc@cygnus.com>1997-12-21 08:24:48 -0700
committerJeff Law <law@gcc.gnu.org>1997-12-21 08:24:48 -0700
commitd300e55140f3d2b7c72b6e2c54aa8117508a278e (patch)
tree0b8fadd5175f1003cd62fe44249ac0f84a09d3d4 /gcc/invoke.texi
parentf9fc59e8c7d867eed481ec74433c8e582f95ce39 (diff)
downloadgcc-d300e55140f3d2b7c72b6e2c54aa8117508a278e.zip
gcc-d300e55140f3d2b7c72b6e2c54aa8117508a278e.tar.gz
gcc-d300e55140f3d2b7c72b6e2c54aa8117508a278e.tar.bz2
c-pragma.c (handle_pragma_token): Generate warning messages about unknown pragmas if warn_unknown_pragmas is set.
* c-pragma.c (handle_pragma_token): Generate warning messages about unknown pragmas if warn_unknown_pragmas is set. * c-decl.c (c_decode_option): Parse -Wunknown-pragmas command line option to set variable: warn_unknown_pragmas. From-SVN: r17168
Diffstat (limited to 'gcc/invoke.texi')
-rw-r--r--gcc/invoke.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/invoke.texi b/gcc/invoke.texi
index f8c9f9a..d1f8756 100644
--- a/gcc/invoke.texi
+++ b/gcc/invoke.texi
@@ -126,6 +126,7 @@ in the following sections.
-Wsign-compare -Wstrict-prototypes -Wswitch -Wsynth
-Wtemplate-debugging -Wtraditional -Wtrigraphs
-Wundef -Wuninitialized -Wunused -Wwrite-strings
+-Wunknown-pragmas
@end smallexample
@item Debugging Options
@@ -1400,6 +1401,15 @@ members.
When using templates in a C++ program, warn if debugging is not yet
fully available (C++ only).
+@item -Wunknown-pragmas
+@cindex warning for unknown pragmas
+@cindex unknown pragmas, warning
+@cindex pragmas, warning of unknown
+Warn when a #pragma directive is encountered which is not understood by
+GCC. If this command line option is used, warnings will even be issued
+for unknown pragmas in system header files. This is not the case if
+the warnings were only enabled by the @samp{-Wall} command line option.
+
@item -Wall
All of the above @samp{-W} options combined. This enables all the
warnings about constructions that some users consider questionable, and