summaryrefslogtreecommitdiffstats
path: root/Objects/odictobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-06-08 08:18:18 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-06-08 08:18:18 (GMT)
commite18719509f5b6f1a002642ba9619b37731312fa0 (patch)
treee88691905f35f71ac47e5602b40540b6c5ee9ee0 /Objects/odictobject.c
parentcfb1961f6127ddc6e1b8920d4f125142bace2dac (diff)
downloadcpython-e18719509f5b6f1a002642ba9619b37731312fa0.zip
cpython-e18719509f5b6f1a002642ba9619b37731312fa0.tar.gz
cpython-e18719509f5b6f1a002642ba9619b37731312fa0.tar.bz2
odict: Remove useless ";" after function definition
Fix a "gcc -pendatic" warning.
Diffstat (limited to 'Objects/odictobject.c')
-rw-r--r--Objects/odictobject.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c
index dccbb3e..9af0b0e 100644
--- a/Objects/odictobject.c
+++ b/Objects/odictobject.c
@@ -1462,7 +1462,7 @@ odict_dealloc(PyODictObject *self)
++tstate->trash_delete_nesting;
Py_TRASHCAN_SAFE_END(self)
-};
+}
/* tp_repr */
@@ -1539,7 +1539,7 @@ Done:
Py_XDECREF(pieces);
Py_ReprLeave((PyObject *)self);
return result;
-};
+}
/* tp_doc */
@@ -1611,7 +1611,7 @@ odict_richcompare(PyObject *v, PyObject *w, int op)
} else {
Py_RETURN_NOTIMPLEMENTED;
}
-};
+}
/* tp_iter */
@@ -1619,7 +1619,7 @@ static PyObject *
odict_iter(PyODictObject *od)
{
return odictiter_new(od, _odict_ITER_KEYS);
-};
+}
/* tp_init */
@@ -1645,7 +1645,7 @@ odict_init(PyObject *self, PyObject *args, PyObject *kwds)
Py_DECREF(res);
return 0;
}
-};
+}
/* tp_new */
@@ -1720,7 +1720,7 @@ PyTypeObject PyODict_Type = {
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 @@ _PyODict_SetItem_KnownHash(PyObject *od, PyObject *key, PyObject *value,
}
}
return res;
-};
+}
int
PyODict_SetItem(PyObject *od, PyObject *key, PyObject *value)
@@ -1747,7 +1747,7 @@ PyODict_SetItem(PyObject *od, PyObject *key, PyObject *value)
if (hash == -1)
return -1;
return _PyODict_SetItem_KnownHash(od, key, value, hash);
-};
+}
int
PyODict_DelItem(PyObject *od, PyObject *key)
@@ -1760,7 +1760,7 @@ PyODict_DelItem(PyObject *od, PyObject *key)
if (res < 0)
return -1;
return _PyDict_DelItem_KnownHash(od, key, hash);
-};
+}
/* -------------------------------------------