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
This commit is contained in:
Victor Stinner 2020-09-23 23:25:40 +02:00 committed by GitHub
parent 98c16c991d
commit bbeb223e9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2321,7 +2321,8 @@ MemoryError_dealloc(PyBaseExceptionObject *self)
/* If this is a subclass of MemoryError, we don't need to /* If this is a subclass of MemoryError, we don't need to
* do anything in the free-list*/ * do anything in the free-list*/
if (!Py_IS_TYPE(self, (PyTypeObject *) PyExc_MemoryError)) { 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); _PyObject_GC_UNTRACK(self);