summaryrefslogtreecommitdiffstats
path: root/Modules/nismodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-27 11:27:31 (GMT)
committerGitHub <noreply@github.com>2018-11-27 11:27:31 (GMT)
commit62be74290aca26d16f3f55ece7ff6dad14e60e8d (patch)
tree656625bee7ca61fd87c6370407162522d8fb277f /Modules/nismodule.c
parent81524022d0c0df7a41f9b2b2df41e2ebe140e610 (diff)
downloadcpython-62be74290aca26d16f3f55ece7ff6dad14e60e8d.zip
cpython-62be74290aca26d16f3f55ece7ff6dad14e60e8d.tar.gz
cpython-62be74290aca26d16f3f55ece7ff6dad14e60e8d.tar.bz2
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.
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r--Modules/nismodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index 1a538dc..bc6796c 100644
--- a/Modules/nismodule.c
+++ b/Modules/nismodule.c
@@ -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,