From 62be74290aca26d16f3f55ece7ff6dad14e60e8d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 27 Nov 2018 13:27:31 +0200 Subject: 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. --- Python/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/context.c') diff --git a/Python/context.c b/Python/context.c index 302f7696bb..d6ef5b337c 100644 --- a/Python/context.c +++ b/Python/context.c @@ -648,7 +648,7 @@ static PyMethodDef PyContext_methods[] = { _CONTEXTVARS_CONTEXT_KEYS_METHODDEF _CONTEXTVARS_CONTEXT_VALUES_METHODDEF _CONTEXTVARS_CONTEXT_COPY_METHODDEF - {"run", (PyCFunction)context_run, METH_FASTCALL | METH_KEYWORDS, NULL}, + {"run", (PyCFunction)(void(*)(void))context_run, METH_FASTCALL | METH_KEYWORDS, NULL}, {NULL, NULL} }; -- cgit v1.2.1