diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-23 21:55:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-25 08:52:54 +0100 |
commit | fa545023ada3f2a5f79cab1ff628fd18434c7c2e (patch) | |
tree | 7bb5c0f01264f9b53724baa1b0ef7b7e80e23b3d /config_host | |
parent | c940e3d8b3895c550fb37e0e9acbd19b4bb3515e (diff) |
Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}
...replacing hard-coded GCC version checks. Those checks that guard
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
appear relevant only for GCC itself, not Clang (which used to fail the old
guards because it typically announces itself with a rather low
__GNUC__/__GNUC_MINOR__ version), see 6e67c03dc0225fc66343546b14e902b9d238b1a3
"Enable -Wnon-virtual-dtor for GCC 4.6"
Change-Id: I6bfa4d5caa6192e7a203ce829682bf6bb8d61a1b
Diffstat (limited to 'config_host')
-rw-r--r-- | config_host/config_global.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config_host/config_global.h.in b/config_host/config_global.h.in index 87033db7f066..fa37a17d010c 100644 --- a/config_host/config_global.h.in +++ b/config_host/config_global.h.in @@ -32,6 +32,9 @@ Any change in this header will cause a rebuild of almost everything. #define HAVE_GCC_BUILTIN_ATOMIC 0 #endif +#define HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY 0 +#define HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE 0 + #undef HAVE_SFINAE_ANONYMOUS_BROKEN #ifndef HAVE_SFINAE_ANONYMOUS_BROKEN #define HAVE_SFINAE_ANONYMOUS_BROKEN 0 |