diff options
author | Branko Cibej <branko.cibej@hermes.si> | 2000-09-26 00:54:04 +0200 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-09-25 22:54:04 +0000 |
commit | 317639a81c1c666ab67014d458da7cb57a554a92 (patch) | |
tree | 7fc11a6b7a593988efb1e370c5443cd4e490aeb4 /gcc/cpplib.h | |
parent | 1c6d33efb4d9725b537e72c7b18efeeb638c55bc (diff) | |
download | gcc-317639a81c1c666ab67014d458da7cb57a554a92.zip gcc-317639a81c1c666ab67014d458da7cb57a554a92.tar.gz gcc-317639a81c1c666ab67014d458da7cb57a554a92.tar.bz2 |
flags.h: Declare warning flag warn_system_headers.
2000-09-25 Branko Cibej <branko.cibej@hermes.si>
* flags.h: Declare warning flag warn_system_headers.
* toplev.c: Define it.
(W_options): Add option -Wsystem-headers.
* diagnostic.c (count_error): Test warn_system_headers.
* invoke.texi: Add description for -Wsystem-headers.
* cpplib.h (cpp_options): New member warn_system_headers.
* cpphash.h (CPP_PEDANTIC, CPP_WTRADITIONAL): Don't test
CPP_IN_SYSTEM_HEADER.
* cpplib.c (do_import, do_pragma_once): Likewise.
* cpperror.c (_cpp_begin_message): Test warn_system_headers
and CPP_IN_SYSTEM_HEADER.
* cppinit.c (handle_option): Recognize -Wsystem_headers.
(print_help): Describe -Wsystem_headers.
* cpplex.c (lex_line): Reorganize condition so that warnings
about C++ comments in system headers can be enabled. Remove
label do_line_comment.
From-SVN: r36636
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index c6f7ed3..9b12713 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -359,6 +359,9 @@ struct cpp_options /* Nonzero means don't print warning messages. */ unsigned char inhibit_warnings; + /* Nonzero means don't suppress warnings from system headers. */ + unsigned char warn_system_headers; + /* Nonzero means don't print error messages. Has no option to select it, but can be set by a user of cpplib (e.g. fix-header). */ unsigned char inhibit_errors; |