From 0da7a4c4afe2bfe55decaf3c30eba16c60380ec4 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 31 Jan 2014 22:48:15 -0800 Subject: [PATCH] Work around ICC 14 bug: __attribute__((deprecated)) with text Apparently it doesn't like the text. Change-Id: If8e14df84f0d9915018eac94df16bf1b679155e0 Reviewed-by: Keith Gardner Reviewed-by: Thiago Macieira --- src/corelib/global/qcompilerdetection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qcompilerdetection.h b/src/corelib/global/qcompilerdetection.h index 9bc43a3186..0513db1575 100644 --- a/src/corelib/global/qcompilerdetection.h +++ b/src/corelib/global/qcompilerdetection.h @@ -153,7 +153,7 @@ # define Q_CC_INTEL # define Q_ASSUME_IMPL(expr) __assume(expr) # define Q_UNREACHABLE_IMPL() __builtin_unreachable() -# if __INTEL_COMPILER >= 1300 +# if __INTEL_COMPILER >= 1300 && !defined(__APPLE__) # define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text))) # endif # elif defined(__clang__)