diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-27 13:27:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-27 13:27:31 +0200 |
| commit | 62be74290aca26d16f3f55ece7ff6dad14e60e8d (patch) | |
| tree | 656625bee7ca61fd87c6370407162522d8fb277f /Modules/_sqlite/cursor.c | |
| parent | 81524022d0c0df7a41f9b2b2df41e2ebe140e610 (diff) | |
| download | cpython-git-62be74290aca26d16f3f55ece7ff6dad14e60e8d.tar.gz | |
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/_sqlite/cursor.c')
| -rw-r--r-- | Modules/_sqlite/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index c62ad5d64e..8a46e5cf2e 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -908,7 +908,7 @@ static PyMethodDef cursor_methods[] = { PyDoc_STR("Executes a multiple SQL statements at once. Non-standard.")}, {"fetchone", (PyCFunction)pysqlite_cursor_fetchone, METH_NOARGS, PyDoc_STR("Fetches one row from the resultset.")}, - {"fetchmany", (PyCFunction)pysqlite_cursor_fetchmany, METH_VARARGS|METH_KEYWORDS, + {"fetchmany", (PyCFunction)(void(*)(void))pysqlite_cursor_fetchmany, METH_VARARGS|METH_KEYWORDS, PyDoc_STR("Fetches several rows from the resultset.")}, {"fetchall", (PyCFunction)pysqlite_cursor_fetchall, METH_NOARGS, PyDoc_STR("Fetches all rows from the resultset.")}, |
