mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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;
|
||||
continue;
|
||||
}
|
||||
POP();
|
||||
STACKADJ(-1);
|
||||
break;
|
||||
|
||||
case UNARY_CONVERT:
|
||||
|
@ -1960,7 +1960,7 @@ eval_frame(PyFrameObject *f)
|
|||
SET_TOP(x);
|
||||
continue;
|
||||
}
|
||||
POP();
|
||||
STACKADJ(-1);
|
||||
break;
|
||||
|
||||
case FOR_ITER:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue