From: Raymond Hettinger Date: Tue, 14 Jan 2003 12:43:10 +0000 (+0000) Subject: Replaced POP() with STACKADJ(-1) on lines where the result wasn't used. X-Git-Tag: v2.3c1~2459 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bb90a59a641979385f063249143a05a6198725e;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/ceval.c b/Python/ceval.c index b23c26a94952..1fab1cca9e15 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: