mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
support older gcc versions
This commit is contained in:
parent
cae89a7a88
commit
c2cb3b515d
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user