summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-14 12:43:10 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-14 12:43:10 (GMT)
commit8bb90a59a641979385f063249143a05a6198725e (patch)
tree582e5ee05e36e6775e0859beaaf7c4e4e1b09795 /Python/ceval.c
parent2d375f78a570dc627daf61df9d12473633055cdf (diff)
downloadcpython-8bb90a59a641979385f063249143a05a6198725e.zip
cpython-8bb90a59a641979385f063249143a05a6198725e.tar.gz
cpython-8bb90a59a641979385f063249143a05a6198725e.tar.bz2
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.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index b23c26a..1fab1cc 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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: