From: Brett Cannon Date: Tue, 3 Aug 2004 04:53:29 +0000 (+0000) Subject: Tweak previous patch to silence a warning about the unused left value in the X-Git-Tag: v2.4a2~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ad28e14b60b32e19ecf54b87aae5f02bac6b361;p=thirdparty%2FPython%2Fcpython.git Tweak previous patch to silence a warning about the unused left value in the comma expression in listpop() that was being returned. Still essentially unused (as it is meant to be), but now the compiler thinks it is worth *something* by having it incremented. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 72b235629c6e..c95d530bcd42 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -862,7 +862,7 @@ listpop(PyListObject *self, PyObject *args) /* Use status, so that in a release build compilers don't * complain about the unused name. */ - return status, v; + return status++, v; } /* Reverse a slice of a list in place, from lo up to (exclusive) hi. */