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.
This commit is contained in:
Brett Cannon 2004-08-03 04:53:29 +00:00
parent bec69f6a2e
commit 5ad28e14b6

View file

@ -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. */