From: Kaveh R. Ghazi Date: Thu, 19 Jun 2008 17:03:46 +0000 (+0000) Subject: system.h (-Wc++-compat): Activate as a warning, no an error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00066bc0590f2710a71c8713a238167d929045cf;p=gcc.git system.h (-Wc++-compat): Activate as a warning, no an error. * system.h (-Wc++-compat): Activate as a warning, no an error. From-SVN: r136955 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 50bb34bdddc..03547b60f12 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-06-19 Kaveh R. Ghazi + + * system.h (-Wc++-compat): Activate as a warning, no an error. + 2008-06-19 Uros Bizjak * config/i386/i386.h (ix86_tune_indices) 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