aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorsobolevn <mail@sobolevn.me>2024-10-14 23:46:17 +0300
committerGitHub <noreply@github.com>2024-10-14 23:46:17 +0300
commit0c8c665581ede95fe119f902b070e395614b78ed (patch)
tree953659ba75c69da9b5bc1dcfa4ff269f69cd3030 /Python/executor_cases.c.h
parent843d28f59d2616d052d9d45f31823976da07f0f3 (diff)
downloadcpython-0c8c665581ede95fe119f902b070e395614b78ed.tar.gz
cpython-0c8c665581ede95fe119f902b070e395614b78ed.zip
gh-125470: Fix warning in `Python/generated_cases.c.h` (#125471)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 0ed361a2ee7..15a6c7bc1a7 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -737,7 +737,9 @@
_PyStackRef left;
right = stack_pointer[-1];
left = stack_pointer[-2];
+ #ifndef NDEBUG
PyObject *left_o = PyStackRef_AsPyObjectBorrow(left);
+ #endif
PyObject *right_o = PyStackRef_AsPyObjectBorrow(right);
int next_oparg;
#if TIER_ONE