We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e009d79 commit 8c65f8aCopy full SHA for 8c65f8a
modules/core/include/opencv2/core/base.hpp
@@ -271,7 +271,7 @@ enum BorderTypes {
271
# endif
272
#endif
273
#ifndef CV_StaticAssert
274
-# if defined(__GNUC__) && (__GNUC__*100 + __GNUC_MINOR__ > 302)
+# if !defined(__clang__) && defined(__GNUC__) && (__GNUC__*100 + __GNUC_MINOR__ > 302)
275
# define CV_StaticAssert(condition, reason) ({ extern int __attribute__((error("CV_StaticAssert: " reason " " #condition))) CV_StaticAssert(); ((condition) ? 0 : CV_StaticAssert()); })
276
# else
277
template <bool x> struct CV_StaticAssert_failed;
0 commit comments