From e4b37835eff1773504d5b6e7534e224d96abcedf Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Nov 2023 14:24:52 -0700 Subject: GH-111485: Silence warnings in Python/executor_cases.c.h (#111619) --- Python/bytecodes.c | 2 ++ Python/executor_cases.c.h | 2 ++ Python/generated_cases.c.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 98af114..9aca82a 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1216,6 +1216,8 @@ dummy_func( STAT_INC(UNPACK_SEQUENCE, deferred); DECREMENT_ADAPTIVE_COUNTER(this_instr[1].cache); #endif /* ENABLE_SPECIALIZATION */ + (void)seq; + (void)counter; } op(_UNPACK_SEQUENCE, (seq -- unused[oparg])) { diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index fdf3e4b..903fc40 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -884,6 +884,8 @@ STAT_INC(UNPACK_SEQUENCE, deferred); DECREMENT_ADAPTIVE_COUNTER(this_instr[1].cache); #endif /* ENABLE_SPECIALIZATION */ + (void)seq; + (void)counter; break; } diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index e4b328f..dc62d79 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -1743,6 +1743,8 @@ STAT_INC(UNPACK_SEQUENCE, deferred); DECREMENT_ADAPTIVE_COUNTER(this_instr[1].cache); #endif /* ENABLE_SPECIALIZATION */ + (void)seq; + (void)counter; } // _UNPACK_SEQUENCE { -- cgit v0.12