Skip to content

Commit

Permalink
bpo-40890: Fix compiler warning in dictobject.c (pythonGH-20876)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal authored Jun 15, 2020
1 parent 714217f commit 10c3b21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -4123,8 +4123,7 @@ _PyDictView_New(PyObject *dict, PyTypeObject *type)
}

static PyObject *
dictview_mapping(PyObject *view)
{
dictview_mapping(PyObject *view, void *Py_UNUSED(ignored)) {
assert(view != NULL);
assert(PyDictKeys_Check(view)
|| PyDictValues_Check(view)
Expand All @@ -4134,7 +4133,7 @@ dictview_mapping(PyObject *view)
}

static PyGetSetDef dictview_getset[] = {
{"mapping", (getter)dictview_mapping, (setter)NULL,
{"mapping", dictview_mapping, (setter)NULL,
"dictionary that this view refers to", NULL},
{0}
};
Expand Down

0 comments on commit 10c3b21

Please sign in to comment.