summaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r--gcc/cppexp.c4
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
{