diff Python/ceval.c @ 27243:3afbd55fb18f legacy-trunk

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.
author Raymond Hettinger <python@rcn.com>
date Tue, 14 Jan 2003 12:43:10 +0000
parents dc6fb8a6af3d
children b8387730dd8f
line wrap: on
line diff
--- a/Python/ceval.c	Tue Jan 14 02:19:36 2003 +0000
+++ b/Python/ceval.c	Tue Jan 14 12:43:10 2003 +0000
@@ -920,7 +920,7 @@
 				err = 0;
 				continue;
 			}
-			POP();
+			STACKADJ(-1);
 			break;
 
 		case UNARY_CONVERT:
@@ -1960,7 +1960,7 @@
 				SET_TOP(x);
 				continue;
 			}
-			POP();
+			STACKADJ(-1);
 			break;
 
 		case FOR_ITER: