From: Guido van Rossum Date: Wed, 1 Nov 2023 21:24:52 +0000 (-0700) Subject: GH-111485: Silence warnings in Python/executor_cases.c.h (#111619) X-Git-Tag: v3.13.0a2~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4b37835eff1773504d5b6e7534e224d96abcedf;p=thirdparty%2FPython%2Fcpython.git GH-111485: Silence warnings in Python/executor_cases.c.h (#111619) --- diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 98af114a72fa..9aca82a80ce8 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 fdf3e4b01a88..903fc40595ce 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 e4b328fee997..dc62d797ae7c 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 {