summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-21 15:24:48 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-12-21 15:24:48 +0000
commit73f0c687a7abc5aeefe54a3a13accaf69075b11b (patch)
tree0b8fadd5175f1003cd62fe44249ac0f84a09d3d4 /gcc/flags.h
parentd1ef2f68d04092211993c2260093729266e475f8 (diff)
downloadgcc-73f0c687a7abc5aeefe54a3a13accaf69075b11b.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index ba057204ded..43c88c94e18 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -83,6 +83,14 @@ extern int warn_inline;
extern int warn_uninitialized;
+/* Zero if unknown pragmas are ignored
+ One if the compiler should warn about an unknown pragma not in
+ a system include file.
+ Greater than one if the compiler should warn for all unknown
+ pragmas. */
+
+extern int warn_unknown_pragmas;
+
/* Nonzero means warn about all declarations which shadow others. */
extern int warn_shadow;