From 6573981350b9a815549526bd5a2467a410428cb8 Mon Sep 17 00:00:00 2001 From: Nicolas Favre-Felix Date: Tue, 15 Mar 2022 22:14:43 -0700 Subject: [PATCH] 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. --- py/bc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/py/bc.h b/py/bc.h index e901f7bb34..eeccc3412f 100644 --- a/py/bc.h +++ b/py/bc.h @@ -124,6 +124,11 @@ D |= (z & 0x1) << n; \ } \ S += 1; \ + (void)E; \ + (void)F; \ + (void)A; \ + (void)K; \ + (void)D; \ } while (0) #define MP_BC_PRELUDE_SIG_DECODE(ip) \