diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-08-14 05:51:06 (GMT) |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-08-14 05:51:06 (GMT) |
commit | 43d564c18c97421f73025ac3132a194975c76bd6 (patch) | |
tree | ecbc306068bcb665c9fa7109274da70b778928b6 /Objects | |
parent | c03e698c344dfc557555b6b07a3ee2702e45f6ee (diff) | |
download | cpython-43d564c18c97421f73025ac3132a194975c76bd6.zip cpython-43d564c18c97421f73025ac3132a194975c76bd6.tar.gz cpython-43d564c18c97421f73025ac3132a194975c76bd6.tar.bz2 |
bpo-37337: Fix a GCC 9 warning in Objects/descrobject.c (GH-14814)
Commit b1263d5a60d3f7ab02dd28409fff59b3815a3f67 causes GCC 9.1.0 to
give a warning in Objects/descrobject.c.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/descrobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index edce250..9e1b281 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -1047,7 +1047,7 @@ mappingproxy_copy(mappingproxyobject *pp, PyObject *Py_UNUSED(ignored)) to the underlying mapping */ static PyMethodDef mappingproxy_methods[] = { - {"get", (PyCFunction)mappingproxy_get, METH_FASTCALL, + {"get", (PyCFunction)(void(*)(void))mappingproxy_get, METH_FASTCALL, PyDoc_STR("D.get(k[,d]) -> D[k] if k in D, else d." " d defaults to None.")}, {"keys", (PyCFunction)mappingproxy_keys, METH_NOARGS, |