diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-04-08 10:01:18 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-04-08 10:01:18 +0000 |
commit | 2f878973cdb605f01778a5bbd67f7459db14b7ff (patch) | |
tree | 1f4ac5b16223e9ffcc027d3568d6d791ee3a30c7 /gcc/cpplib.c | |
parent | e542e61832a106a11a0aab3f366d2ba0a3f4ad41 (diff) | |
download | gcc-2f878973cdb605f01778a5bbd67f7459db14b7ff.zip gcc-2f878973cdb605f01778a5bbd67f7459db14b7ff.tar.gz gcc-2f878973cdb605f01778a5bbd67f7459db14b7ff.tar.bz2 |
cpperror.c (print_location): Don't special case <stdin>.
* cpperror.c (print_location): Don't special case <stdin>.
(_cpp_begin_message): Handle WARNING_SYSHDR the same as
WARNING, but we don't check if we're in system headers.
* cpplib.h (enum error_type): WARNING_SYSHDR: New.
* cpplib.c (do_warning): Warn in system headers.
From-SVN: r41186
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index be04d41..bf1a3b0 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -874,7 +874,8 @@ static void do_warning (pfile) cpp_reader *pfile; { - do_diagnostic (pfile, WARNING, 1); + /* We want #warning diagnostics to be emitted in system headers too. */ + do_diagnostic (pfile, WARNING_SYSHDR, 1); } /* Report program identification. */ |