aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2008-06-29 05:36:20 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2008-06-29 05:36:20 +0000
commit572e5ae36a6e358c96e98638c4c361510bec90ac (patch)
tree4087c41736bddb46c32817dfe3abeba27c59d14b /gcc/system.h
parent4dc6c528c2b8e858ae65d91a82c6fae661894302 (diff)
downloadgcc-572e5ae36a6e358c96e98638c4c361510bec90ac.zip
gcc-572e5ae36a6e358c96e98638c4c361510bec90ac.tar.gz
gcc-572e5ae36a6e358c96e98638c4c361510bec90ac.tar.bz2
optabs.c (libfunc_decl_hash, [...]): Fix -Wcast-qual warnings.
* optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual warnings. * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete. (bitmap.o-warn, dominance.o-warn): New. * configure.ac (cxx_compat_warn): Delete. (loose_warn): Add -Wcast-qual and -Wc++-compat. * system.h: Remove #pragma diagnostic for -Wcast-qual and -Wc++-compat. * configure: Regenerate. cp: * Make-lang.in (cp-warn): Delete $(CXX_COMPAT_WARN). java: * Make-lang.in (java/jcf-io.o-warn): New. From-SVN: r137246
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 363d739..be70b026 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -797,11 +797,9 @@ 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 and -Wc++-compat as warnings (not errors via
- the -Werror flag). */
+/* Activate certain diagnostics 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