From 33255da465cfb1cc5fc50884a6f45c95413bbf8e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Nov 2023 13:39:04 -0700 Subject: [PATCH] Silence warnings in Python/executor_cases.c.h --- 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 98af114a72fa60..9aca82a80ce839 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 fdf3e4b01a88b3..903fc40595ceb7 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 e4b328fee99738..dc62d797ae7c3b 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 {