aboutsummaryrefslogtreecommitdiff
path: root/libcpp/lex.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-08-20 04:12:58 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-08-20 04:12:58 +0000
commitdd3ff077ef4ae24b35d15da9ee474ba096652b4e (patch)
tree0c1fc6e6cfa20039a441e5673bfc094d0ad3fd96 /libcpp/lex.c
parent8714cbc5c7ebd974538feca6bef64f6578d316e8 (diff)
cpplib.h (cpp_options): Use signed char.
* include/cpplib.h (cpp_options): Use signed char. * lex.c (_cpp_lex_direct): Don't warn in C++ mode. From-SVN: r214210
Diffstat (limited to 'libcpp/lex.c')
-rw-r--r--libcpp/lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcpp/lex.c b/libcpp/lex.c
index 827cfb0d75f..5366dad9e44 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -2338,6 +2338,7 @@ _cpp_lex_direct (cpp_reader *pfile)
}
/* Or if specifically desired via -Wc90-c99-compat. */
else if (CPP_OPTION (pfile, cpp_warn_c90_c99_compat) > 0
+ && ! CPP_OPTION (pfile, cplusplus)
&& ! buffer->warned_cplusplus_comments)
{
cpp_error (pfile, CPP_DL_WARNING,