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.
This commit is contained in:
Stéphane Wirtel 2019-03-05 16:10:53 +01:00 • committed by Victor Stinner
parent 5a02e0d1c8
commit 359a2f3dab
2 changed files with 2 additions and 2 deletions

View file

@ -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},
};