diff options
author | Stéphane Wirtel <stephane@wirtel.be> | 2019-03-05 15:10:53 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-03-05 15:10:53 (GMT) |
commit | 359a2f3daba49fde0d3a07fb3c7a8b051c450d08 (patch) | |
tree | 3c18e7e3eca5bb73d3da191cf4c643177fb2678d /Modules | |
parent | 5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82 (diff) | |
download | cpython-359a2f3daba49fde0d3a07fb3c7a8b051c450d08.zip cpython-359a2f3daba49fde0d3a07fb3c7a8b051c450d08.tar.gz cpython-359a2f3daba49fde0d3a07fb3c7a8b051c450d08.tar.bz2 |
bpo-33012: Fix compilation warnings in memoryobject.c and _collectionsmodule.c (GH-12179)
Cast function pointers to (void(*)(void)) before casting to (PyCFunction)
to make "warning: cast between incompatible function types" false alarm quiet.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_collectionsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 1c9e866..afd2731 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -2453,7 +2453,7 @@ static PyMemberDef tuplegetter_members[] = { }; static PyMethodDef tuplegetter_methods[] = { - {"__reduce__", (PyCFunction) tuplegetter_reduce, METH_NOARGS, NULL}, + {"__reduce__", (PyCFunction)(void(*)(void))tuplegetter_reduce, METH_NOARGS, NULL}, {NULL}, }; |