Kaydet (Commit) bc6b13b4 authored tarafından Luboš Luňák's avatar Luboš Luňák

make SAL_WNODEPRECATED_DECLARATIONS_PUSH work also with Clang

Clang claims to be GCC version older than the one tested for.

Change-Id: Ia9886915f62f886810e091f66d8e5710047e2e2f
üst a05f2eef
......@@ -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"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment