Replaced POP() with STACKADJ(-1) on lines where the result wasn't used.
authorRaymond Hettinger <python@rcn.com>
Tue, 14 Jan 2003 12:43:10 +0000 (12:43 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 14 Jan 2003 12:43:10 +0000 (12:43 +0000)
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.

Python/ceval.c

index b23c26a9495213f05eb47993777dcc830ac88560..1fab1cca9e15178941f5fa8dcbb5cae88c78b882 100644 (file)
@@ -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: