Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around an incompatibility between Perl and clang warnings.
Certain versions of perl trigger clang warnings about bracing: In file included from filter.c:55: ... /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/zaphod32_hash.h:150:5: error: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts [-Werror,-Wcompound-token-split-by-macro] 150 | ZAPHOD32_SCRAMBLE32(state[0],0x9fade23b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/x86_64-linux-gnu/perl/5.34/CORE/zaphod32_hash.h:80:38: note: expanded from macro 'ZAPHOD32_SCRAMBLE32' 80 | #define ZAPHOD32_SCRAMBLE32(v,prime) STMT_START { \ The perl headers can optionally omit the use of "({ statement })" in macros, so we use this so we can do clang builds with --enable-perl-filters without excessive warnings (or errors if using -Werror). Fixed in later perls. See also Perl/perl5#18780
- Loading branch information