Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-37337: Fix a GCC 9 warning in Objects/descrobject.c
Commit b1263d5 causes GCC 9.1.0 to
give a warning in Objects/descrobject.c.
  • Loading branch information
ZackerySpytz committed Jul 17, 2019
commit ec792a16f6a78d85da1bb0a9d01eb04eaadbcb12
2 changes: 1 addition & 1 deletion Objects/descrobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down