Skip to content

Commit 6573981

Browse files
committed
Explicitly ignore unused variables (fixes #6158)
A macro in py/bc.h declares five variables that are used to hold data temporarily, without their values being used after the assignments. This causes "unused-but-set-variable" warnings in clang 13. We mark these variables as explicitly ignored to avoid this new warning.
1 parent af9f80d commit 6573981

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

py/bc.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@
124124
D |= (z & 0x1) << n; \
125125
} \
126126
S += 1; \
127+
(void)E; \
128+
(void)F; \
129+
(void)A; \
130+
(void)K; \
131+
(void)D; \
127132
} while (0)
128133

129134
#define MP_BC_PRELUDE_SIG_DECODE(ip) \

0 commit comments

Comments
 (0)