Commit b411171
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#187801 parent 17b6563 commit b411171
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments