mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -2006,8 +2006,8 @@ s_sizeof(PyStructObject *self, void *unused)
|
|||
|
||||
static struct PyMethodDef s_methods[] = {
|
||||
STRUCT_ITER_UNPACK_METHODDEF
|
||||
{"pack", (PyCFunction)s_pack, METH_FASTCALL, s_pack__doc__},
|
||||
{"pack_into", (PyCFunction)s_pack_into, METH_FASTCALL, s_pack_into__doc__},
|
||||
{"pack", (PyCFunction)(void(*)(void))s_pack, METH_FASTCALL, s_pack__doc__},
|
||||
{"pack_into", (PyCFunction)(void(*)(void))s_pack_into, METH_FASTCALL, s_pack_into__doc__},
|
||||
STRUCT_UNPACK_METHODDEF
|
||||
STRUCT_UNPACK_FROM_METHODDEF
|
||||
{"__sizeof__", (PyCFunction)s_sizeof, METH_NOARGS, s_sizeof__doc__},
|
||||
|
@ -2264,8 +2264,8 @@ static struct PyMethodDef module_functions[] = {
|
|||
_CLEARCACHE_METHODDEF
|
||||
CALCSIZE_METHODDEF
|
||||
ITER_UNPACK_METHODDEF
|
||||
{"pack", (PyCFunction)pack, METH_FASTCALL, pack_doc},
|
||||
{"pack_into", (PyCFunction)pack_into, METH_FASTCALL, pack_into_doc},
|
||||
{"pack", (PyCFunction)(void(*)(void))pack, METH_FASTCALL, pack_doc},
|
||||
{"pack_into", (PyCFunction)(void(*)(void))pack_into, METH_FASTCALL, pack_into_doc},
|
||||
UNPACK_METHODDEF
|
||||
UNPACK_FROM_METHODDEF
|
||||
{NULL, NULL} /* sentinel */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue