diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-13 03:12:36 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-13 03:12:36 +0000 |
commit | 2cbb0000c738cc6a933c07c53788b75257af6b72 (patch) | |
tree | 6c65dd14d2255a49afb5bd29e4dbf6ab7ac36c6c /gcc/cpppch.c | |
parent | 77b355a0790586d6f28b6e2fcfddc8e12c9b9c4e (diff) | |
download | gcc-2cbb0000c738cc6a933c07c53788b75257af6b72.tar.gz |
2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
* cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64293 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpppch.c')
-rw-r--r-- | gcc/cpppch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cpppch.c b/gcc/cpppch.c index e7f0c91adfd..05ec2e36d7c 100644 --- a/gcc/cpppch.c +++ b/gcc/cpppch.c @@ -417,7 +417,7 @@ cpp_valid_state (r, name, fd) || h->flags & NODE_POISONED) { if (CPP_OPTION (r, warn_invalid_pch)) - cpp_error (r, DL_WARNING, + cpp_error (r, DL_WARNING_SYSHDR, "%s: not used because `%.*s' not defined", name, m.name_length, namebuf); goto fail; @@ -429,7 +429,7 @@ cpp_valid_state (r, name, fd) || memcmp (namebuf, newdefn, m.definition_length) != 0) { if (CPP_OPTION (r, warn_invalid_pch)) - cpp_error (r, DL_WARNING, + cpp_error (r, DL_WARNING_SYSHDR, "%s: not used because `%.*s' defined as `%s' not `%.*s'", name, m.name_length, namebuf, newdefn + m.name_length, m.definition_length - m.name_length, @@ -454,7 +454,8 @@ cpp_valid_state (r, name, fd) || h->flags & NODE_POISONED) { if (CPP_OPTION (r, warn_invalid_pch)) - cpp_error (r, DL_WARNING, "%s: not used because `%s' is defined", + cpp_error (r, DL_WARNING_SYSHDR, + "%s: not used because `%s' is defined", name, undeftab + i); goto fail; } |