Skip to content

Commit 0c8c665

Browse files
sobolevnEclips4
andauthored
gh-125470: Fix warning in Python/generated_cases.c.h (#125471)
Co-authored-by: Kirill Podoprigora <[email protected]>
1 parent 843d28f commit 0c8c665

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,9 @@ dummy_func(
611611
// specializations, but there is no output.
612612
// At the end we just skip over the STORE_FAST.
613613
op(_BINARY_OP_INPLACE_ADD_UNICODE, (left, right --)) {
614+
#ifndef NDEBUG
614615
PyObject *left_o = PyStackRef_AsPyObjectBorrow(left);
616+
#endif
615617
PyObject *right_o = PyStackRef_AsPyObjectBorrow(right);
616618

617619
int next_oparg;

Python/executor_cases.c.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)