mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +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
|
@ -1583,13 +1583,13 @@ PyDoc_STRVAR(csv_field_size_limit_doc,
|
|||
"the old limit is returned");
|
||||
|
||||
static struct PyMethodDef csv_methods[] = {
|
||||
{ "reader", (PyCFunction)csv_reader,
|
||||
{ "reader", (PyCFunction)(void(*)(void))csv_reader,
|
||||
METH_VARARGS | METH_KEYWORDS, csv_reader_doc},
|
||||
{ "writer", (PyCFunction)csv_writer,
|
||||
{ "writer", (PyCFunction)(void(*)(void))csv_writer,
|
||||
METH_VARARGS | METH_KEYWORDS, csv_writer_doc},
|
||||
{ "list_dialects", (PyCFunction)csv_list_dialects,
|
||||
METH_NOARGS, csv_list_dialects_doc},
|
||||
{ "register_dialect", (PyCFunction)csv_register_dialect,
|
||||
{ "register_dialect", (PyCFunction)(void(*)(void))csv_register_dialect,
|
||||
METH_VARARGS | METH_KEYWORDS, csv_register_dialect_doc},
|
||||
{ "unregister_dialect", (PyCFunction)csv_unregister_dialect,
|
||||
METH_O, csv_unregister_dialect_doc},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue