diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2007-02-04 04:00:38 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2007-02-04 04:00:38 +0000 |
commit | beeffe367a738b5cdb8add28f809e03a51a84790 (patch) | |
tree | a34d5ab9ca7ef469aa8629379592af86f9073558 /gcc/c-opts.c | |
parent | f1283f8fade5cb9063936fe13347fd349208f9b3 (diff) | |
download | gcc-beeffe367a738b5cdb8add28f809e03a51a84790.zip gcc-beeffe367a738b5cdb8add28f809e03a51a84790.tar.gz gcc-beeffe367a738b5cdb8add28f809e03a51a84790.tar.bz2 |
c-opts.c (c_common_post_options): If C++0x mode is enabled, don't warn about C++0x compatibility.
2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
* c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
warn about C++0x compatibility.
From-SVN: r121564
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 720f72d..2b0bc5f 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1082,6 +1082,11 @@ c_common_post_options (const char **pfilename) if (flag_isoc99) flag_complex_method = 2; + /* If we're allowing C++0x constructs, don't warn about C++0x + compatibility problems. */ + if (flag_cpp0x) + warn_cxx0x_compat = 0; + if (flag_preprocess_only) { /* Open the output now. We must do so even if flag_no_output is |