mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-41654: Fix compiler warning in MemoryError_dealloc() (GH-22387) (GH-24894)
Fix warning:
Objects\exceptions.c(2324,56): warning C4098:
'MemoryError_dealloc': 'void' function returning a value
(cherry picked from commit bbeb223e9a
)
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
651fc30af7
commit
1f0cde6784
1 changed files with 2 additions and 1 deletions
|
@ -2310,7 +2310,8 @@ MemoryError_dealloc(PyBaseExceptionObject *self)
|
|||
BaseException_clear(self);
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue