diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-07-24 21:49:34 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-07-24 21:49:34 +0000 |
commit | 6f4280eff71abb396d4bf9e4b455ea68cd949e77 (patch) | |
tree | cad67533cd08c325707ca5aac9c99844289bff1a /gcc/cppexp.c | |
parent | 4e81ae98cad81aa779f539d440d9b0f2c3f4fdff (diff) | |
download | gcc-6f4280eff71abb396d4bf9e4b455ea68cd949e77.tar.gz |
cppexp.c: Warn about unary + if -Wtraditional.
* cppexp.c: Warn about unary + if -Wtraditional.
* cpplex.c (lex_line): Always set BOL on the first token of a line.
From-SVN: r35239
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index e80f8e882e3..b3442470e36 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -849,6 +849,10 @@ _cpp_parse_expr (pfile) top->value = v2; top->unsignedp = unsigned2; top->flags |= HAVE_VALUE; + + if (CPP_WTRADITIONAL (pfile)) + cpp_warning (pfile, + "traditional C rejects the unary plus operator"); } else { |