A few more gcc warnings bite the dust.
diff --git a/Mac/Modules/res/resedit.py b/Mac/Modules/res/resedit.py
index fce0bd1..c66c0c8 100644
--- a/Mac/Modules/res/resedit.py
+++ b/Mac/Modules/res/resedit.py
@@ -13,7 +13,8 @@
HLock(h);
memcpy(*h, buf, len);
HUnlock(h);
-return ResObj_New(h);
+_res = ResObj_New(h);
+return _res;
"""
f = ManualGenerator("Resource", resource_body)
@@ -43,7 +44,8 @@
HUnlock(h);
rv = (ResourceObject *)ResObj_New(h);
rv->ob_freeit = PyMac_AutoDisposeHandle;
-return (PyObject *)rv;
+_res = (PyObject *)rv;
+return _res;
"""
f = ManualGenerator("Handle", handle_body)
@@ -92,7 +94,8 @@
_self->ob_freeit = PyMac_AutoDisposeHandle;
else
_self->ob_freeit = NULL;
-return Py_BuildValue("i", old);
+_res = Py_BuildValue("i", old);
+return _res;
"""
f = ManualGenerator("AutoDispose", AutoDispose_body)
f.docstring = lambda: "(int)->int. Automatically DisposeHandle the object on Python object cleanup"