From 5ad28e14b60b32e19ecf54b87aae5f02bac6b361 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 3 Aug 2004 04:53:29 +0000 Subject: 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. --- Objects/listobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/listobject.c b/Objects/listobject.c index 72b2356..c95d530 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. */ -- cgit v0.12