[Python-checkins] cpython: Issue #22082: Fix a compiler warning (function is not a prototype)

victor.stinner python-checkins at python.org
Sun Jul 27 16:12:06 CEST 2014


http://hg.python.org/cpython/rev/c2d3feeb61ed
changeset:   91897:c2d3feeb61ed
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sun Jul 27 16:11:30 2014 +0200
summary:
  Issue #22082: Fix a compiler warning (function is not a prototype)

files:
  Objects/typeobject.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -55,7 +55,7 @@
 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 @@
 }
 
 /* Undo init_slotdefs, releasing the interned strings. */
-static void clear_slotdefs()
+static void clear_slotdefs(void)
 {
     slotdef *p;
     for (p = slotdefs; p->name; p++) {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list