summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-27 11:05:02 (GMT)
committerGitHub <noreply@github.com>2018-11-27 11:05:02 (GMT)
commit81524022d0c0df7a41f9b2b2df41e2ebe140e610 (patch)
tree1b8156249d1349c984770e31048f4f424e357965 /Objects
parent4a934d490fac779d8954a8292369c4506bab23fa (diff)
downloadcpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.zip
cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.gz
cpython-81524022d0c0df7a41f9b2b2df41e2ebe140e610.tar.bz2
bpo-33012: Fix signatures of METH_NOARGS funstions. (GH-10736)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c4
-rw-r--r--Objects/odictobject.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 24561dd..2f108bd 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -4201,7 +4201,7 @@ dictviews_isdisjoint(PyObject *self, PyObject *other)
PyDoc_STRVAR(isdisjoint_doc,
"Return True if the view and the given iterable have a null intersection.");
-static PyObject* dictkeys_reversed(_PyDictViewObject *dv);
+static PyObject* dictkeys_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored));
PyDoc_STRVAR(reversed_keys_doc,
"Return a reverse iterator over the dict keys.");
@@ -4254,7 +4254,7 @@ dictkeys_new(PyObject *dict, PyObject *Py_UNUSED(ignored))
}
static PyObject *
-dictkeys_reversed(_PyDictViewObject *dv)
+dictkeys_reversed(_PyDictViewObject *dv, PyObject *Py_UNUSED(ignored))
{
if (dv->dv_dict == NULL) {
Py_RETURN_NONE;
diff --git a/Objects/odictobject.c b/Objects/odictobject.c
index bdd6108..0f54200 100644
--- a/Objects/odictobject.c
+++ b/Objects/odictobject.c
@@ -1804,7 +1804,7 @@ done:
PyDoc_STRVAR(reduce_doc, "Return state information for pickling");
static PyObject *
-odictiter_reduce(odictiterobject *di)
+odictiter_reduce(odictiterobject *di, PyObject *Py_UNUSED(ignored))
{
/* copy the iterator state */
odictiterobject tmp = *di;