Skip to content

Commit 1f0cde6

Browse files
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 bbeb223) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 651fc30 commit 1f0cde6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/exceptions.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,8 @@ MemoryError_dealloc(PyBaseExceptionObject *self)
23102310
BaseException_clear(self);
23112311

23122312
if (!Py_IS_TYPE(self, (PyTypeObject *) PyExc_MemoryError)) {
2313-
return Py_TYPE(self)->tp_free((PyObject *)self);
2313+
Py_TYPE(self)->tp_free((PyObject *)self);
2314+
return;
23142315
}
23152316

23162317
_PyObject_GC_UNTRACK(self);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy