mirror of
https://github.com/python/cpython.git
synced 2026-02-25 00:20:59 +00:00
Fix warnings on main (GH-145104)
This commit is contained in:
parent
faea32b729
commit
5944a539b9
4 changed files with 20 additions and 10 deletions
|
|
@ -1641,7 +1641,8 @@ dummy_func(void) {
|
|||
}
|
||||
|
||||
op(_GUARD_IP__PUSH_FRAME, (ip/4 --)) {
|
||||
stack_pointer = sym_set_stack_depth(this_instr->operand1, stack_pointer);
|
||||
(void)ip;
|
||||
stack_pointer = sym_set_stack_depth((int)this_instr->operand1, stack_pointer);
|
||||
// TO DO
|
||||
// Normal function calls to known functions
|
||||
// do not need an IP guard.
|
||||
|
|
@ -1659,24 +1660,27 @@ dummy_func(void) {
|
|||
}
|
||||
|
||||
op(_GUARD_IP_YIELD_VALUE, (ip/4 --)) {
|
||||
(void)ip;
|
||||
if (ctx->frame->caller) {
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
}
|
||||
stack_pointer = sym_set_stack_depth(this_instr->operand1, stack_pointer);
|
||||
stack_pointer = sym_set_stack_depth((int)this_instr->operand1, stack_pointer);
|
||||
}
|
||||
|
||||
op(_GUARD_IP_RETURN_VALUE, (ip/4 --)) {
|
||||
(void)ip;
|
||||
if (ctx->frame->caller) {
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
}
|
||||
stack_pointer = sym_set_stack_depth(this_instr->operand1, stack_pointer);
|
||||
stack_pointer = sym_set_stack_depth((int)this_instr->operand1, stack_pointer);
|
||||
}
|
||||
|
||||
op(_GUARD_IP_RETURN_GENERATOR, (ip/4 --)) {
|
||||
(void)ip;
|
||||
if (ctx->frame->caller) {
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
}
|
||||
stack_pointer = sym_set_stack_depth(this_instr->operand1, stack_pointer);
|
||||
stack_pointer = sym_set_stack_depth((int)this_instr->operand1, stack_pointer);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue