Skip to content

Commit

Permalink
PATCH GH #17276 New compilation diagnostic
Browse files Browse the repository at this point in the history
The previous patch in commit 830b3eb
didn't work generally.  This uses #ifdef instead.
  • Loading branch information
khwilliamson committed Dec 17, 2019
1 parent dca9f61 commit c55422b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions perl.h
Expand Up @@ -7517,8 +7517,9 @@ START_EXTERN_C
*/

/* The quadmath literals are anon structs which -Wc++-compat doesn't like. */
GCC_DIAG_IGNORE_DECL(-Wpragmas);
# ifndef USE_CPLUSPLUS
GCC_DIAG_IGNORE_DECL(-Wc++-compat);
# endif

# ifdef USE_QUADMATH
/* Cannot use HUGE_VALQ for PL_inf because not a compile-time
Expand Down Expand Up @@ -7588,8 +7589,9 @@ INFNAN_NV_U8_DECL PL_nan = { 0.0/0.0 }; /* keep last */
# endif
# endif

# ifndef USE_CPLUSPLUS
GCC_DIAG_RESTORE_DECL;
GCC_DIAG_RESTORE_DECL;
# endif

#else

Expand Down

0 comments on commit c55422b

Please sign in to comment.