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:
@@ -238,7 +238,7 @@ syslog_log_upto(PyObject *self, PyObject *args)
|
||||
/* List of functions defined in the module */
|
||||
|
||||
static PyMethodDef syslog_methods[] = {
|
||||
{"openlog", (PyCFunction) syslog_openlog, METH_VARARGS | METH_KEYWORDS},
|
||||
{"openlog", (PyCFunction)(void(*)(void)) syslog_openlog, METH_VARARGS | METH_KEYWORDS},
|
||||
{"closelog", syslog_closelog, METH_NOARGS},
|
||||
{"syslog", syslog_syslog, METH_VARARGS},
|
||||
{"setlogmask", syslog_setlogmask, METH_VARARGS},
|
||||
|
||||
Reference in New Issue
Block a user