diff options
author | Zackery Spytz <zspytz@gmail.com> | 2020-12-05 10:34:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 10:34:51 (GMT) |
commit | 556d97f473fa538cef780f84bd29239ecf57d9c5 (patch) | |
tree | d025ab9952b9e197653a594cc5a93cf423b671b4 /Include/cpython/tupleobject.h | |
parent | 29afab6c5f656f07ac85c9b2cf089631b2557a11 (diff) | |
download | cpython-556d97f473fa538cef780f84bd29239ecf57d9c5.zip cpython-556d97f473fa538cef780f84bd29239ecf57d9c5.tar.gz cpython-556d97f473fa538cef780f84bd29239ecf57d9c5.tar.bz2 |
bpo-30459: Cast the result of PyList_SET_ITEM() to void (GH-19975)
Do the same for PyTuple_SET_ITEM().
Diffstat (limited to 'Include/cpython/tupleobject.h')
-rw-r--r-- | Include/cpython/tupleobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/tupleobject.h b/Include/cpython/tupleobject.h index 51dcd42..7cada88 100644 --- a/Include/cpython/tupleobject.h +++ b/Include/cpython/tupleobject.h @@ -23,6 +23,6 @@ PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *); #define PyTuple_GET_ITEM(op, i) (_PyTuple_CAST(op)->ob_item[i]) /* Macro, *only* to be used to fill in brand new tuples */ -#define PyTuple_SET_ITEM(op, i, v) (_PyTuple_CAST(op)->ob_item[i] = v) +#define PyTuple_SET_ITEM(op, i, v) ((void)(_PyTuple_CAST(op)->ob_item[i] = v)) PyAPI_FUNC(void) _PyTuple_DebugMallocStats(FILE *out); |