mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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
|
@ -2768,7 +2768,7 @@ channel__channel_id(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
static PyMethodDef module_functions[] = {
|
||||
{"create", (PyCFunction)interp_create,
|
||||
METH_VARARGS, create_doc},
|
||||
{"destroy", (PyCFunction)interp_destroy,
|
||||
{"destroy", (PyCFunction)(void(*)(void))interp_destroy,
|
||||
METH_VARARGS | METH_KEYWORDS, destroy_doc},
|
||||
{"list_all", interp_list_all,
|
||||
METH_NOARGS, list_all_doc},
|
||||
|
@ -2776,29 +2776,29 @@ static PyMethodDef module_functions[] = {
|
|||
METH_NOARGS, get_current_doc},
|
||||
{"get_main", interp_get_main,
|
||||
METH_NOARGS, get_main_doc},
|
||||
{"is_running", (PyCFunction)interp_is_running,
|
||||
{"is_running", (PyCFunction)(void(*)(void))interp_is_running,
|
||||
METH_VARARGS | METH_KEYWORDS, is_running_doc},
|
||||
{"run_string", (PyCFunction)interp_run_string,
|
||||
{"run_string", (PyCFunction)(void(*)(void))interp_run_string,
|
||||
METH_VARARGS | METH_KEYWORDS, run_string_doc},
|
||||
|
||||
{"is_shareable", (PyCFunction)object_is_shareable,
|
||||
{"is_shareable", (PyCFunction)(void(*)(void))object_is_shareable,
|
||||
METH_VARARGS | METH_KEYWORDS, is_shareable_doc},
|
||||
|
||||
{"channel_create", channel_create,
|
||||
METH_NOARGS, channel_create_doc},
|
||||
{"channel_destroy", (PyCFunction)channel_destroy,
|
||||
{"channel_destroy", (PyCFunction)(void(*)(void))channel_destroy,
|
||||
METH_VARARGS | METH_KEYWORDS, channel_destroy_doc},
|
||||
{"channel_list_all", channel_list_all,
|
||||
METH_NOARGS, channel_list_all_doc},
|
||||
{"channel_send", (PyCFunction)channel_send,
|
||||
{"channel_send", (PyCFunction)(void(*)(void))channel_send,
|
||||
METH_VARARGS | METH_KEYWORDS, channel_send_doc},
|
||||
{"channel_recv", (PyCFunction)channel_recv,
|
||||
{"channel_recv", (PyCFunction)(void(*)(void))channel_recv,
|
||||
METH_VARARGS | METH_KEYWORDS, channel_recv_doc},
|
||||
{"channel_close", (PyCFunction)channel_close,
|
||||
{"channel_close", (PyCFunction)(void(*)(void))channel_close,
|
||||
METH_VARARGS | METH_KEYWORDS, channel_close_doc},
|
||||
{"channel_release", (PyCFunction)channel_release,
|
||||
{"channel_release", (PyCFunction)(void(*)(void))channel_release,
|
||||
METH_VARARGS | METH_KEYWORDS, channel_release_doc},
|
||||
{"_channel_id", (PyCFunction)channel__channel_id,
|
||||
{"_channel_id", (PyCFunction)(void(*)(void))channel__channel_id,
|
||||
METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
||||
{NULL, NULL} /* sentinel */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue