The GCC_DIAG_IGNORE(-Wpedantic) stuff added by me to
STATIC_ASSERT_GLOBAL() by
ac892e4a230de5b was causing some smoke failures.
I don't yet understand why.
builtin in C++11.
*/
/* IBM XL C V11 does not support _Static_assert, no matter what <assert.h> says */
-# define STATIC_ASSERT_GLOBAL(COND) \
- GCC_DIAG_IGNORE(-Wpedantic); \
- static_assert(COND, #COND); \
- GCC_DIAG_RESTORE;
+# define STATIC_ASSERT_GLOBAL(COND) static_assert(COND, #COND)
#else
/* We use a bit-field instead of an array because gcc accepts
'typedef char x[n]' where n is not a compile-time constant.