mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
bec69f6a2e
commit
5ad28e14b6
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue