Skip to content

Commit

Permalink
perl.h: Silence warning when compiled with C++
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
khwilliamson committed Sep 29, 2019
1 parent 5cd61b6 commit 830b3eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perl.h
Expand Up @@ -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
Expand Down Expand Up @@ -7553,6 +7554,7 @@ INFNAN_NV_U8_DECL PL_nan = { 0.0/0.0 }; /* keep last */
# endif
# endif

GCC_DIAG_RESTORE_DECL;
GCC_DIAG_RESTORE_DECL;

#else
Expand Down

0 comments on commit 830b3eb

Please sign in to comment.