diff options
author | Jason Merrill <jason@redhat.com> | 2015-05-09 00:50:10 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-05-09 00:50:10 -0400 |
commit | fe191308ddc9bb7095d01bcd11dcaf1f38c84bab (patch) | |
tree | 61fa36eb422bfdf8906071bacaa096b5ef2c2dbc /libcpp/init.c | |
parent | 169980942642c39a062529f747e00a7882d046d7 (diff) | |
download | gcc-fe191308ddc9bb7095d01bcd11dcaf1f38c84bab.zip gcc-fe191308ddc9bb7095d01bcd11dcaf1f38c84bab.tar.gz gcc-fe191308ddc9bb7095d01bcd11dcaf1f38c84bab.tar.bz2 |
lex.c (lex_string): Add -Wc++11-compat warning.
libcpp/
* lex.c (lex_string): Add -Wc++11-compat warning.
* include/cpplib.h: Add CPP_W_CXX11_COMPAT.
(struct cpp_options): Add cpp_warn_cxx11_compat.
* init.c (cpp_create_reader): Initialize it.
gcc/c-family/
* c.opt (Wc++0x-compat): Set it.
From-SVN: r222961
Diffstat (limited to 'libcpp/init.c')
-rw-r--r-- | libcpp/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcpp/init.c b/libcpp/init.c index 45a4d13..1ebd709 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -180,6 +180,7 @@ cpp_create_reader (enum c_lang lang, cpp_hash_table *table, CPP_OPTION (pfile, warn_trigraphs) = 2; CPP_OPTION (pfile, warn_endif_labels) = 1; CPP_OPTION (pfile, cpp_warn_c90_c99_compat) = -1; + CPP_OPTION (pfile, cpp_warn_cxx11_compat) = 0; CPP_OPTION (pfile, cpp_warn_deprecated) = 1; CPP_OPTION (pfile, cpp_warn_long_long) = 0; CPP_OPTION (pfile, dollars_in_ident) = 1; |