aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-opts.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-05-09 20:47:33 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-05-09 20:47:33 -0400
commitedff0c0662c428774cdccdab4d1998e64ce8acf5 (patch)
tree10e8eb1901147994b71ee74467e11cbf0ccc4931 /gcc/c-family/c-opts.c
parent129211bc889a6ea7109b4391a3640f42b7c050c6 (diff)
downloadgcc-edff0c0662c428774cdccdab4d1998e64ce8acf5.zip
gcc-edff0c0662c428774cdccdab4d1998e64ce8acf5.tar.gz
gcc-edff0c0662c428774cdccdab4d1998e64ce8acf5.tar.bz2
c-opts.c (c_common_post_options): Also clear cpp_opts->cpp_warn_cxx11_compat.
* c-opts.c (c_common_post_options): Also clear cpp_opts->cpp_warn_cxx11_compat. From-SVN: r222978
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r--gcc/c-family/c-opts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index bd99871..e9eb511 100644
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -905,6 +905,7 @@ c_common_post_options (const char **pfilename)
/* If we're allowing C++0x constructs, don't warn about C++98
identifiers which are keywords in C++0x. */
warn_cxx11_compat = 0;
+ cpp_opts->cpp_warn_cxx11_compat = 0;
if (warn_narrowing == -1)
warn_narrowing = 1;