Skip to content

Commit 98453b1

Browse files
committed
Avoid compiler warning on unused variable
1 parent e0b7ab8 commit 98453b1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,6 +2741,7 @@ dummy_func(
27412741
tb = PyException_GetTraceback(val);
27422742
Py_XDECREF(tb);
27432743
assert(PyLong_Check(lasti));
2744+
(void)lasti; // Shut up compiler warning if asserts are off
27442745
PyObject *stack[4] = {NULL, exc, val, tb};
27452746
res = PyObject_Vectorcall(exit_func, stack + 1,
27462747
3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);

Python/generated_cases.c.h

Lines changed: 1 addition & 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)