Skip to content

Commit

Permalink
partially revert 'silence gcc -pendantic warnings'
Browse files Browse the repository at this point in the history
The GCC_DIAG_IGNORE(-Wpedantic) stuff added by me to
STATIC_ASSERT_GLOBAL() by ac892e4 was causing some smoke failures.

I don't yet understand why.
  • Loading branch information
iabyn committed Jun 20, 2015
1 parent f0b1ad2 commit d0044f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions perl.h
Expand Up @@ -3526,10 +3526,7 @@ typedef pthread_key_t perl_key;
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.
Expand Down

0 comments on commit d0044f8

Please sign in to comment.