Skip to content

Commit

Permalink
pythongh-116420: Fix unused var compilation warnings (pythonGH-116466)
Browse files Browse the repository at this point in the history
Fix unused var compilation warnings
  • Loading branch information
Fidget-Spinner authored and adorilson committed Mar 25, 2024
1 parent cfa3555 commit 45f94bb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Python/optimizer_bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ dummy_func(void) {
}

op(_COMPARE_OP, (left, right -- res)) {
(void)left;
(void)right;
if (oparg & 16) {
OUT_OF_SPACE_IF_NULL(res = sym_new_type(ctx, &PyBool_Type));
}
Expand All @@ -361,22 +363,32 @@ dummy_func(void) {
}

op(_COMPARE_OP_INT, (left, right -- res)) {
(void)left;
(void)right;
OUT_OF_SPACE_IF_NULL(res = sym_new_type(ctx, &PyBool_Type));
}

op(_COMPARE_OP_FLOAT, (left, right -- res)) {
(void)left;
(void)right;
OUT_OF_SPACE_IF_NULL(res = sym_new_type(ctx, &PyBool_Type));
}

op(_COMPARE_OP_STR, (left, right -- res)) {
(void)left;
(void)right;
OUT_OF_SPACE_IF_NULL(res = sym_new_type(ctx, &PyBool_Type));
}

op(_IS_OP, (left, right -- res)) {
(void)left;
(void)right;
OUT_OF_SPACE_IF_NULL(res = sym_new_type(ctx, &PyBool_Type));
}

op(_CONTAINS_OP, (left, right -- res)) {
(void)left;
(void)right;
OUT_OF_SPACE_IF_NULL(res = sym_new_type(ctx, &PyBool_Type));
}

Expand Down
12 changes: 12 additions & 0 deletions Python/optimizer_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 45f94bb

Please sign in to comment.