diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-08-03 04:53:29 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-08-03 04:53:29 (GMT) |
commit | 5ad28e14b60b32e19ecf54b87aae5f02bac6b361 (patch) | |
tree | 19ca8633770281f53beb9caff63cefe469ca7b14 /Objects/listobject.c | |
parent | bec69f6a2e372f78649d4fe13bbc0357ca1057b5 (diff) | |
download | cpython-5ad28e14b60b32e19ecf54b87aae5f02bac6b361.zip cpython-5ad28e14b60b32e19ecf54b87aae5f02bac6b361.tar.gz cpython-5ad28e14b60b32e19ecf54b87aae5f02bac6b361.tar.bz2 |
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.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |