]> granicus.if.org Git - python/commitdiff
Issue #22082: Fix a compiler warning (function is not a prototype)
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 27 Jul 2014 14:11:30 +0000 (16:11 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 27 Jul 2014 14:11:30 +0000 (16:11 +0200)
Objects/typeobject.c

index b97c32ecbf5843857601ef39ede3d7f623956a18..8e7c25a213ff899be67d3cc4748a4be6380acb68 100644 (file)
@@ -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++) {