mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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
|
@ -423,13 +423,13 @@ nis_maps (PyObject *self, PyObject *args, PyObject *kwdict)
|
|||
}
|
||||
|
||||
static PyMethodDef nis_methods[] = {
|
||||
{"match", (PyCFunction)nis_match,
|
||||
{"match", (PyCFunction)(void(*)(void))nis_match,
|
||||
METH_VARARGS | METH_KEYWORDS,
|
||||
match__doc__},
|
||||
{"cat", (PyCFunction)nis_cat,
|
||||
{"cat", (PyCFunction)(void(*)(void))nis_cat,
|
||||
METH_VARARGS | METH_KEYWORDS,
|
||||
cat__doc__},
|
||||
{"maps", (PyCFunction)nis_maps,
|
||||
{"maps", (PyCFunction)(void(*)(void))nis_maps,
|
||||
METH_VARARGS | METH_KEYWORDS,
|
||||
maps__doc__},
|
||||
{"get_default_domain", nis_get_default_domain,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue