bpo-40890: Fix compiler warning in dictobject.c (GH-20876)

This commit is contained in:
Pablo Galindo 2020-06-15 02:05:20 +01:00 committed by GitHub
parent 714217f956
commit 10c3b2120a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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)
@ -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}
};