mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Replaced POP() with STACKADJ(-1) on lines where the result wasn't used.
The two are semantically equivalent, but the first triggered a compiler warning about an unused variable. Note, the preceding steps had already accessed and decreffed the variable so the reference counts were fine.
This commit is contained in:
parent
2d375f78a5
commit
8bb90a59a6
1 changed files with 2 additions and 2 deletions
|
@ -920,7 +920,7 @@ eval_frame(PyFrameObject *f)
|
||||||
err = 0;
|
err = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
POP();
|
STACKADJ(-1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UNARY_CONVERT:
|
case UNARY_CONVERT:
|
||||||
|
@ -1960,7 +1960,7 @@ eval_frame(PyFrameObject *f)
|
||||||
SET_TOP(x);
|
SET_TOP(x);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
POP();
|
STACKADJ(-1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FOR_ITER:
|
case FOR_ITER:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue