summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-06-19 14:52:17 +0100
committerDavid Mitchell <davem@iabyn.com>2015-06-19 15:57:14 +0100
commitac892e4a230de5bdb9243ef5c82b0fb5be7f8975 (patch)
treec7372b2e9aeab97a861ef1d8f3a205997ec34f8e /perl.h
parentd48cfc773d16936b4dfcfc305fcae6cc56950fce (diff)
downloadperl-ac892e4a230de5bdb9243ef5c82b0fb5be7f8975.tar.gz
silence some gcc -pendantic warnings
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/perl.h b/perl.h
index fdbad6ac9a..bc54d0b20e 100644
--- a/perl.h
+++ b/perl.h
@@ -3526,7 +3526,10 @@ 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) static_assert(COND, #COND)
+# define STATIC_ASSERT_GLOBAL(COND) \
+ GCC_DIAG_IGNORE(-Wpedantic); \
+ static_assert(COND, #COND); \
+ GCC_DIAG_RESTORE;
#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.
@@ -5552,7 +5555,7 @@ EXTCONST bool PL_valid_types_NV_set[];
*/
/* The quadmath literals are anon structs which -Wc++-compat doesn't like. */
-GCC_DIAG_IGNORE(-Wc++-compat);
+GCC_DIAG_IGNORE(-Wc++-compat)
# ifdef USE_QUADMATH
/* Cannot use HUGE_VALQ for PL_inf because not a compile-time
@@ -5622,7 +5625,7 @@ INFNAN_NV_U8_DECL PL_nan = { 0.0/0.0 }; /* keep last */
# endif
# endif
-GCC_DIAG_RESTORE;
+GCC_DIAG_RESTORE
#else