system.h: Activate -Wcast-qual as warning-only.

* system.h: Activate -Wcast-qual as warning-only.

From-SVN: r127913
This commit is contained in:
Kaveh R. Ghazi 2007-08-29 20:28:33 +00:00 committed by Kaveh Ghazi
parent e4e5e7f5f8
commit fe9a259855
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2007-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h: Activate -Wcast-qual as warning-only.
2007-08-29 Paolo Bonzini <bonzini@gnu.org>
PR target/33168

View File

@ -782,4 +782,9 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
#define CONST_CAST(X) ((void*)(X))
#endif
/* Acivate -Wcast-qual as a warning (not an error/-Werror). */
#if GCC_VERSION >= 4003
#pragma GCC diagnostic warning "-Wcast-qual"
#endif
#endif /* ! GCC_SYSTEM_H */