diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-19 17:03:46 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-19 17:03:46 +0000 |
commit | 453ca61e85b7e2219f9189c5d476677a8bb284b5 (patch) | |
tree | f07a59000525be7dfce2497564f85bbd03fdc51d /gcc/system.h | |
parent | 7d709e5f3eaeb8731457c6c59c4ed1e8536e5a14 (diff) | |
download | gcc-453ca61e85b7e2219f9189c5d476677a8bb284b5.tar.gz |
* system.h (-Wc++-compat): Activate as a warning, no an error.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/system.h b/gcc/system.h index 8e06b2d6fef..363d7398c5b 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -797,9 +797,11 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; #define CONST_CAST_RTX(X) CONST_CAST(struct rtx_def *, (X)) #define CONST_CAST_BB(X) CONST_CAST(struct basic_block_def *, (X)) -/* Activate -Wcast-qual as a warning (not an error/-Werror). */ +/* Activate -Wcast-qual and -Wc++-compat as warnings (not errors via + the -Werror flag). */ #if GCC_VERSION >= 4003 #pragma GCC diagnostic warning "-Wcast-qual" +#pragma GCC diagnostic warning "-Wc++-compat" /* If asserts are disabled, activate -Wuninitialized as a warning (not an error/-Werror). */ #ifndef ENABLE_ASSERT_CHECKING |