aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index c9a1b6b..0225d8b 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -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 */