mirror of https://github.com/python/cpython
Previous commit was viewed as "perverse". Changed to just cast the unused
variable to void.. Thanks to Sjoerd Mullender for the suggested change.
This commit is contained in:
parent
955d2b2168
commit
651dd52b3a
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue