From: berak Date: Sun, 2 Nov 2014 07:16:29 +0000 (+0100) Subject: support older gcc versions X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~19^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2cb3b515d925998ad122918a3dad02dbdff1d83;p=profile%2Fivi%2Fopencv.git support older gcc versions --- diff --git a/modules/core/include/opencv2/core/base.hpp b/modules/core/include/opencv2/core/base.hpp index e17cb84..77c5c52 100644 --- a/modules/core/include/opencv2/core/base.hpp +++ b/modules/core/include/opencv2/core/base.hpp @@ -225,7 +225,7 @@ enum { CV_DO_PRAGMA(warning(push)) \ CV_DO_PRAGMA(warning(disable: 4996)) #define CV_SUPPRESS_DEPRECATED_END CV_DO_PRAGMA(warning(pop)) -#elif defined __GNUC__ +#elif defined (__clang__) || ((__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))) #define CV_SUPPRESS_DEPRECATED_START \ CV_DO_PRAGMA(GCC diagnostic push) \ CV_DO_PRAGMA(GCC diagnostic ignored "-Wdeprecated-declarations")