mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
GH-125515: Reduce number of compiler warnings in generated code (GH-125697)
This commit is contained in:
parent
19e93e2e26
commit
25441592db
4 changed files with 11 additions and 8 deletions
6
Python/generated_cases.c.h
generated
6
Python/generated_cases.c.h
generated
|
@ -4747,8 +4747,6 @@
|
|||
// don't want to specialize instrumented instructions
|
||||
PAUSE_ADAPTIVE_COUNTER(this_instr[1].counter);
|
||||
GO_TO_INSTRUCTION(LOAD_SUPER_ATTR);
|
||||
stack_pointer += -1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
}
|
||||
|
||||
TARGET(INSTRUMENTED_POP_JUMP_IF_FALSE) {
|
||||
|
@ -5060,9 +5058,11 @@
|
|||
tstate->current_frame = frame->previous;
|
||||
assert(!_PyErr_Occurred(tstate));
|
||||
tstate->c_recursion_remaining += PY_EVAL_C_STACK_UNITS;
|
||||
return PyStackRef_AsPyObjectSteal(retval);
|
||||
PyObject *result = PyStackRef_AsPyObjectSteal(retval);
|
||||
stack_pointer += -1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
/* Not strictly necessary, but prevents warnings */
|
||||
return result;
|
||||
}
|
||||
|
||||
TARGET(IS_OP) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue