mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue