mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)
Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code.
This commit is contained in:
parent
81524022d0
commit
62be74290a
38 changed files with 174 additions and 174 deletions
|
@ -70,10 +70,10 @@ static PyMethodDef spamlist_methods[] = {
|
|||
PyDoc_STR("setstate(state)")},
|
||||
/* These entries differ only in the flags; they are used by the tests
|
||||
in test.test_descr. */
|
||||
{"classmeth", (PyCFunction)spamlist_specialmeth,
|
||||
{"classmeth", (PyCFunction)(void(*)(void))spamlist_specialmeth,
|
||||
METH_VARARGS | METH_KEYWORDS | METH_CLASS,
|
||||
PyDoc_STR("classmeth(*args, **kw)")},
|
||||
{"staticmeth", (PyCFunction)spamlist_specialmeth,
|
||||
{"staticmeth", (PyCFunction)(void(*)(void))spamlist_specialmeth,
|
||||
METH_VARARGS | METH_KEYWORDS | METH_STATIC,
|
||||
PyDoc_STR("staticmeth(*args, **kw)")},
|
||||
{NULL, NULL},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue