mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-106797: Remove warning logs from Python/generated_cases.c.h and executor_cases.c.h (gh-107889)
gh-106797: Remove warning logs from Python/generated_cases.c.h
This commit is contained in:
parent
2e1f688fe0
commit
bf707749e8
3 changed files with 6 additions and 6 deletions
2
Python/executor_cases.c.h
generated
2
Python/executor_cases.c.h
generated
|
@ -1513,7 +1513,7 @@
|
||||||
Py_DECREF(self);
|
Py_DECREF(self);
|
||||||
if (attr == NULL) goto pop_3_error;
|
if (attr == NULL) goto pop_3_error;
|
||||||
STACK_SHRINK(2);
|
STACK_SHRINK(2);
|
||||||
stack_pointer[-1 - (0 ? 1 : 0)] = attr;
|
stack_pointer[-1] = attr;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
Python/generated_cases.c.h
generated
6
Python/generated_cases.c.h
generated
|
@ -2251,7 +2251,7 @@
|
||||||
Py_DECREF(self);
|
Py_DECREF(self);
|
||||||
if (attr == NULL) goto pop_3_error;
|
if (attr == NULL) goto pop_3_error;
|
||||||
STACK_SHRINK(2);
|
STACK_SHRINK(2);
|
||||||
stack_pointer[-1 - (0 ? 1 : 0)] = attr;
|
stack_pointer[-1] = attr;
|
||||||
next_instr += 1;
|
next_instr += 1;
|
||||||
DISPATCH();
|
DISPATCH();
|
||||||
}
|
}
|
||||||
|
@ -3574,7 +3574,7 @@
|
||||||
assert(descr != NULL);
|
assert(descr != NULL);
|
||||||
Py_DECREF(owner);
|
Py_DECREF(owner);
|
||||||
attr = Py_NewRef(descr);
|
attr = Py_NewRef(descr);
|
||||||
stack_pointer[-1 - (0 ? 1 : 0)] = attr;
|
stack_pointer[-1] = attr;
|
||||||
next_instr += 9;
|
next_instr += 9;
|
||||||
DISPATCH();
|
DISPATCH();
|
||||||
}
|
}
|
||||||
|
@ -3594,7 +3594,7 @@
|
||||||
assert(descr != NULL);
|
assert(descr != NULL);
|
||||||
Py_DECREF(owner);
|
Py_DECREF(owner);
|
||||||
attr = Py_NewRef(descr);
|
attr = Py_NewRef(descr);
|
||||||
stack_pointer[-1 - (0 ? 1 : 0)] = attr;
|
stack_pointer[-1] = attr;
|
||||||
next_instr += 9;
|
next_instr += 9;
|
||||||
DISPATCH();
|
DISPATCH();
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,14 +61,14 @@ class StackOffset:
|
||||||
for eff in self.deep:
|
for eff in self.deep:
|
||||||
if eff.size:
|
if eff.size:
|
||||||
terms.append(("-", maybe_parenthesize(eff.size)))
|
terms.append(("-", maybe_parenthesize(eff.size)))
|
||||||
elif eff.cond and eff.cond != "1":
|
elif eff.cond and eff.cond not in ("0", "1"):
|
||||||
terms.append(("-", f"({parenthesize_cond(eff.cond)} ? 1 : 0)"))
|
terms.append(("-", f"({parenthesize_cond(eff.cond)} ? 1 : 0)"))
|
||||||
elif eff.cond != "0":
|
elif eff.cond != "0":
|
||||||
num -= 1
|
num -= 1
|
||||||
for eff in self.high:
|
for eff in self.high:
|
||||||
if eff.size:
|
if eff.size:
|
||||||
terms.append(("+", maybe_parenthesize(eff.size)))
|
terms.append(("+", maybe_parenthesize(eff.size)))
|
||||||
elif eff.cond and eff.cond != "1":
|
elif eff.cond and eff.cond not in ("0", "1"):
|
||||||
terms.append(("+", f"({parenthesize_cond(eff.cond)} ? 1 : 0)"))
|
terms.append(("+", f"({parenthesize_cond(eff.cond)} ? 1 : 0)"))
|
||||||
elif eff.cond != "0":
|
elif eff.cond != "0":
|
||||||
num += 1
|
num += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue