[Python-checkins] cpython: odict: Remove useless ";" after function definition

victor.stinner python-checkins at python.org
Wed Jun 8 04:27:48 EDT 2016


https://hg.python.org/cpython/rev/3130e17404ec
changeset:   101783:3130e17404ec
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jun 08 10:18:18 2016 +0200
summary:
  odict: Remove useless ";" after function definition

Fix a "gcc -pendatic" warning.

files:
  Objects/odictobject.c |  18 +++++++++---------
  1 files changed, 9 insertions(+), 9 deletions(-)


diff --git a/Objects/odictobject.c b/Objects/odictobject.c
--- a/Objects/odictobject.c
+++ b/Objects/odictobject.c
@@ -1462,7 +1462,7 @@
     ++tstate->trash_delete_nesting;
 
     Py_TRASHCAN_SAFE_END(self)
-};
+}
 
 /* tp_repr */
 
@@ -1539,7 +1539,7 @@
     Py_XDECREF(pieces);
     Py_ReprLeave((PyObject *)self);
     return result;
-};
+}
 
 /* tp_doc */
 
@@ -1611,7 +1611,7 @@
     } else {
         Py_RETURN_NOTIMPLEMENTED;
     }
-};
+}
 
 /* tp_iter */
 
@@ -1619,7 +1619,7 @@
 odict_iter(PyODictObject *od)
 {
     return odictiter_new(od, _odict_ITER_KEYS);
-};
+}
 
 /* tp_init */
 
@@ -1645,7 +1645,7 @@
         Py_DECREF(res);
         return 0;
     }
-};
+}
 
 /* tp_new */
 
@@ -1720,7 +1720,7 @@
 PyObject *
 PyODict_New(void) {
     return odict_new(&PyODict_Type, NULL, NULL);
-};
+}
 
 static int
 _PyODict_SetItem_KnownHash(PyObject *od, PyObject *key, PyObject *value,
@@ -1738,7 +1738,7 @@
         }
     }
     return res;
-};
+}
 
 int
 PyODict_SetItem(PyObject *od, PyObject *key, PyObject *value)
@@ -1747,7 +1747,7 @@
     if (hash == -1)
         return -1;
     return _PyODict_SetItem_KnownHash(od, key, value, hash);
-};
+}
 
 int
 PyODict_DelItem(PyObject *od, PyObject *key)
@@ -1760,7 +1760,7 @@
     if (res < 0)
         return -1;
     return _PyDict_DelItem_KnownHash(od, key, hash);
-};
+}
 
 
 /* -------------------------------------------

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


More information about the Python-checkins mailing list