summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-06-15 01:05:20 (GMT)
committerGitHub <noreply@github.com>2020-06-15 01:05:20 (GMT)
commit10c3b2120afa01b2c310ac50e99d8b98c943b0a2 (patch)
tree24ac5b8f7bd6fe71f9442c741bbda4f26bbb391a /Objects/dictobject.c
parent714217f9561507bbc7218a02089d0e1da0239372 (diff)
downloadcpython-10c3b2120afa01b2c310ac50e99d8b98c943b0a2.zip
cpython-10c3b2120afa01b2c310ac50e99d8b98c943b0a2.tar.gz
cpython-10c3b2120afa01b2c310ac50e99d8b98c943b0a2.tar.bz2
bpo-40890: Fix compiler warning in dictobject.c (GH-20876)
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 48e96a0..55bf4ae 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -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}
};