Silence unused-variable warnings in optimizer_cases.c.h (#148127)

This commit is contained in:
Stan Ulbrych 2026-04-05 19:22:10 +01:00 committed by GitHub
parent a1cf4430ed
commit d6e044512c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -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);
}