summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-09-28 14:01:41 -0600
committerKarl Williamson <khw@cpan.org>2019-09-29 11:46:26 -0600
commit830b3eb245d5dbcf095fbd4b5d59764c697c20df (patch)
tree5f853adde55aa5a30cfb5d0ecfb45b160b90f2f0 /perl.h
parent5cd61b66283b55e639490151d4e730a840ab13d5 (diff)
downloadperl-830b3eb245d5dbcf095fbd4b5d59764c697c20df.tar.gz
perl.h: Silence warning when compiled with C++
This silences a warning that the pragma it surrounds is not valid on C++. We don't need to know that, and it clutters the compilation output.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index b1ab81dd3b..05dbe0e785 100644
--- a/perl.h
+++ b/perl.h
@@ -7483,6 +7483,7 @@ START_EXTERN_C
*/
/* The quadmath literals are anon structs which -Wc++-compat doesn't like. */
+GCC_DIAG_IGNORE_DECL(-Wpragmas);
GCC_DIAG_IGNORE_DECL(-Wc++-compat);
# ifdef USE_QUADMATH
@@ -7554,6 +7555,7 @@ INFNAN_NV_U8_DECL PL_nan = { 0.0/0.0 }; /* keep last */
# endif
GCC_DIAG_RESTORE_DECL;
+GCC_DIAG_RESTORE_DECL;
#else