summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-27 14:11:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-27 14:11:30 (GMT)
commit331a726b38b290bdd3193052f0f9b6e32821a260 (patch)
treeec88cab6a5fef8fbefd5336135e4cd5e5682be14 /Objects
parent501b13c6229f740dd92a0067fdb5486bf2ff1a57 (diff)
downloadcpython-331a726b38b290bdd3193052f0f9b6e32821a260.zip
cpython-331a726b38b290bdd3193052f0f9b6e32821a260.tar.gz
cpython-331a726b38b290bdd3193052f0f9b6e32821a260.tar.bz2
Issue #22082: Fix a compiler warning (function is not a prototype)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index b97c32e..8e7c25a 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -55,7 +55,7 @@ static PyObject *
slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
static void
-clear_slotdefs();
+clear_slotdefs(void);
/*
* finds the beginning of the docstring's introspection signature.
@@ -6533,7 +6533,7 @@ init_slotdefs(void)
}
/* Undo init_slotdefs, releasing the interned strings. */
-static void clear_slotdefs()
+static void clear_slotdefs(void)
{
slotdef *p;
for (p = slotdefs; p->name; p++) {