mirror of
https://github.com/python/cpython.git
synced 2026-04-16 08:41:19 +00:00
Silence unused-variable warnings in optimizer_cases.c.h (#148127)
This commit is contained in:
parent
a1cf4430ed
commit
d6e044512c
2 changed files with 6 additions and 0 deletions
|
|
@ -2124,18 +2124,21 @@ dummy_func(void) {
|
|||
}
|
||||
|
||||
op(_GUARD_CODE_VERSION_RETURN_VALUE, (version/2 -- )) {
|
||||
(void)version;
|
||||
if (ctx->frame->caller) {
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
op(_GUARD_CODE_VERSION_YIELD_VALUE, (version/2 -- )) {
|
||||
(void)version;
|
||||
if (ctx->frame->caller) {
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
op(_GUARD_CODE_VERSION_RETURN_GENERATOR, (version/2 -- )) {
|
||||
(void)version;
|
||||
if (ctx->frame->caller) {
|
||||
REPLACE_OP(this_instr, _NOP, 0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue