summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-08-08 21:21:18 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-08-08 21:21:18 (GMT)
commit651dd52b3ac247fe4a4f18231593a2da96ce8a68 (patch)
treeb8d5ceaf3a36b52b79b14c7f64c966814421d4c2 /Objects
parent955d2b2168464da17b4e3f534ae5b3814970f7e9 (diff)
downloadcpython-651dd52b3ac247fe4a4f18231593a2da96ce8a68.zip
cpython-651dd52b3ac247fe4a4f18231593a2da96ce8a68.tar.gz
cpython-651dd52b3ac247fe4a4f18231593a2da96ce8a68.tar.bz2
Previous commit was viewed as "perverse". Changed to just cast the unused
variable to void.. Thanks to Sjoerd Mullender for the suggested change.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index c95d530..e5d5b25 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -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. */