diff options
author | Victor Stinner <vstinner@python.org> | 2020-09-23 21:25:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 21:25:40 (GMT) |
commit | bbeb223e9a5e9f9374df384efa386b4068a65c0e (patch) | |
tree | 772f3897190d78add543bbfb2c569f9318133475 /Objects | |
parent | 98c16c991d6e70a48f4280a7cd464d807bdd9f2b (diff) | |
download | cpython-bbeb223e9a5e9f9374df384efa386b4068a65c0e.zip cpython-bbeb223e9a5e9f9374df384efa386b4068a65c0e.tar.gz cpython-bbeb223e9a5e9f9374df384efa386b4068a65c0e.tar.bz2 |
bpo-41654: Fix compiler warning in MemoryError_dealloc() (GH-22387)
Fix warning:
Objects\exceptions.c(2324,56): warning C4098:
'MemoryError_dealloc': 'void' function returning a value
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/exceptions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index b08cbdd..b14da20 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -2321,7 +2321,8 @@ MemoryError_dealloc(PyBaseExceptionObject *self) /* If this is a subclass of MemoryError, we don't need to * do anything in the free-list*/ if (!Py_IS_TYPE(self, (PyTypeObject *) PyExc_MemoryError)) { - return Py_TYPE(self)->tp_free((PyObject *)self); + Py_TYPE(self)->tp_free((PyObject *)self); + return; } _PyObject_GC_UNTRACK(self); |