From bc6b13b4145042eff2c1c1fbb48b30d134a86962 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 30 Jan 2013 16:06:29 +0100 Subject: make SAL_WNODEPRECATED_DECLARATIONS_PUSH work also with Clang Clang claims to be GCC version older than the one tested for. Change-Id: Ia9886915f62f886810e091f66d8e5710047e2e2f --- sal/inc/sal/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal') diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h index 57a1a6207ff6..8ada6d7ae729 100644 --- a/sal/inc/sal/types.h +++ b/sal/inc/sal/types.h @@ -494,7 +494,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) { SAL_WNODEPRECATED_DECLARATIONS_POP */ -#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) +#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__) #define SAL_WNODEPRECATED_DECLARATIONS_PUSH \ _Pragma(SAL_STRINGIFY_ARG(GCC diagnostic push)) \ _Pragma(SAL_STRINGIFY_ARG(GCC diagnostic ignored "-Wdeprecated-declarations")) -- cgit