Skip to content

Commit

Permalink
perl.h: clang shows warnings with gcc brace groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 authored and jkeenan committed Jul 12, 2021
1 parent aa41085 commit befee8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion perl.h
Expand Up @@ -686,7 +686,9 @@ Now a placeholder that declares nothing
# define dTHXs dNOOP
#endif

#if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) && !defined(__cplusplus)
/* clang shows warnings for tokens introducing statement expression appear
* in different macro expansion contexts. */
#if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN) && !defined(__cplusplus) && !defined(__clang__)
# ifndef PERL_USE_GCC_BRACE_GROUPS
# define PERL_USE_GCC_BRACE_GROUPS
# endif
Expand Down

0 comments on commit befee8d

Please sign in to comment.