summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-11-01 21:24:52 (GMT)
committerGitHub <noreply@github.com>2023-11-01 21:24:52 (GMT)
commite4b37835eff1773504d5b6e7534e224d96abcedf (patch)
treeda532eb3a92583d970500253da111e3c183c64c8 /Python
parent834b7c18d74da3b30fdca66cc7da6b9e1db3ce6c (diff)
downloadcpython-e4b37835eff1773504d5b6e7534e224d96abcedf.zip
cpython-e4b37835eff1773504d5b6e7534e224d96abcedf.tar.gz
cpython-e4b37835eff1773504d5b6e7534e224d96abcedf.tar.bz2
GH-111485: Silence warnings in Python/executor_cases.c.h (#111619)
Diffstat (limited to 'Python')
-rw-r--r--Python/bytecodes.c2
-rw-r--r--Python/executor_cases.c.h2
-rw-r--r--Python/generated_cases.c.h2
3 files changed, 6 insertions, 0 deletions
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
{