Skip to content

Commit e6a42a1

Browse files
ZackerySpytzlisroach
authored andcommitted
bpo-37337: Fix a GCC 9 warning in Objects/descrobject.c (pythonGH-14814)
Commit b1263d5 causes GCC 9.1.0 to give a warning in Objects/descrobject.c.
1 parent ab29d95 commit e6a42a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/descrobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ mappingproxy_copy(mappingproxyobject *pp, PyObject *Py_UNUSED(ignored))
10471047
to the underlying mapping */
10481048

10491049
static PyMethodDef mappingproxy_methods[] = {
1050-
{"get", (PyCFunction)mappingproxy_get, METH_FASTCALL,
1050+
{"get", (PyCFunction)(void(*)(void))mappingproxy_get, METH_FASTCALL,
10511051
PyDoc_STR("D.get(k[,d]) -> D[k] if k in D, else d."
10521052
" d defaults to None.")},
10531053
{"keys", (PyCFunction)mappingproxy_keys, METH_NOARGS,

0 commit comments

Comments
 (0)