]> granicus.if.org Git - python/commitdiff
Previous commit was viewed as "perverse". Changed to just cast the unused
authorBrett Cannon <bcannon@gmail.com>
Sun, 8 Aug 2004 21:21:18 +0000 (21:21 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 8 Aug 2004 21:21:18 +0000 (21:21 +0000)
variable to void..

Thanks to Sjoerd Mullender for the suggested change.

Objects/listobject.c

index c95d530bcd429bbbfa261dde9b863fc8145f4eb1..e5d5b2579e80fc703328865fccc28ad9a42bfec3 100644 (file)
@@ -862,7 +862,9 @@ listpop(PyListObject *self, PyObject *args)
        /* Use status, so that in a release build compilers don't
         * complain about the unused name.
         */
-       return status++, v;
+       (void) status;
+
+       return v;
 }
 
 /* Reverse a slice of a list in place, from lo up to (exclusive) hi. */