skip BLI_STATIC_ASSERT for Coverity builds (caused parse error)
This commit is contained in:
@@ -388,8 +388,11 @@
|
||||
# define BLI_assert(a) (void)0
|
||||
#endif
|
||||
|
||||
/* C++ can't use _Static_assert, expects static_assert() but c++0x only */
|
||||
#if (!defined(__cplusplus)) && (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 406)) /* gcc4.6+ only */
|
||||
/* C++ can't use _Static_assert, expects static_assert() but c++0x only,
|
||||
* Coverity also errors out. */
|
||||
#if (!defined(__cplusplus)) && \
|
||||
(!defined(__COVERITY__)) && \
|
||||
(defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 406)) /* gcc4.6+ only */
|
||||
# define BLI_STATIC_ASSERT(a, msg) _Static_assert(a, msg);
|
||||
#else
|
||||
/* TODO msvc, clang */
|
||||
|
||||
Reference in New Issue
Block a user