Skip to content

Commit 8def6e1

Browse files
Silence unused-variable warnings in optimizer_cases.c.h
1 parent 1c4408a commit 8def6e1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Python/optimizer_bytecodes.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,18 +2124,21 @@ dummy_func(void) {
21242124
}
21252125

21262126
op(_GUARD_CODE_VERSION_RETURN_VALUE, (version/2 -- )) {
2127+
(void)version;
21272128
if (ctx->frame->caller) {
21282129
REPLACE_OP(this_instr, _NOP, 0, 0);
21292130
}
21302131
}
21312132

21322133
op(_GUARD_CODE_VERSION_YIELD_VALUE, (version/2 -- )) {
2134+
(void)version;
21332135
if (ctx->frame->caller) {
21342136
REPLACE_OP(this_instr, _NOP, 0, 0);
21352137
}
21362138
}
21372139

21382140
op(_GUARD_CODE_VERSION_RETURN_GENERATOR, (version/2 -- )) {
2141+
(void)version;
21392142
if (ctx->frame->caller) {
21402143
REPLACE_OP(this_instr, _NOP, 0, 0);
21412144
}

Python/optimizer_cases.c.h

Lines changed: 3 additions & 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)