diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-14 08:55:21 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-14 08:55:21 +0000 |
commit | dea6dd34e428a1a47b17b388041175e6a9039d76 (patch) | |
tree | ed939906cd95319be76c2a3ab258c72d4015d190 /gcc/cpplib.c | |
parent | 419279baa3fd5cd8ec3531a8f062a82db53ce99d (diff) | |
download | gcc-dea6dd34e428a1a47b17b388041175e6a9039d76.tar.gz |
* cpplib.c (do_pragma_dependency): Tidy warning messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35033 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 565c5133784..e55f9555ef7 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -879,8 +879,8 @@ do_pragma_dependency (pfile) { const cpp_token *msg = _cpp_get_token (pfile); - cpp_warning (pfile, "current file is older than %c%s%c", - left, name, right); + cpp_warning (pfile, "current file is older than %c%.*s%c", + left, (int)len, name, right); if (msg->type != CPP_EOF) { U_CHAR *text, *limit; @@ -889,6 +889,9 @@ do_pragma_dependency (pfile) _cpp_dump_list (pfile, &pfile->token_list, msg, 0); limit = pfile->limit; pfile->limit = text; + while (*text == ' ') + /* There must be something non-whitespace after. */ + text++; cpp_warning (pfile, "%.*s", (int)(limit - text), text); } } |