Mercurial > cpython-lru_cache-weakref
diff Mac/Modules/res/_Resmodule.c @ 19723:2a9bbdbefbb1 legacy-trunk
Shut up many more gcc warnings.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 05 Sep 2001 10:31:52 +0000 |
| parents | 6eafc4a6359a |
| children | d9daa4a67be2 |
line wrap: on
line diff
--- a/Mac/Modules/res/_Resmodule.c Wed Sep 05 10:27:53 2001 +0000 +++ b/Mac/Modules/res/_Resmodule.c Wed Sep 05 10:31:52 2001 +0000 @@ -5,8 +5,12 @@ +#ifdef _WIN32 +#include "pywintoolbox.h" +#else #include "macglue.h" #include "pymactoolbox.h" +#endif /* Macro to test whether a weak-loaded CFM function exists */ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ @@ -394,7 +398,8 @@ { PyObject *_res = NULL; - return CtlObj_New((ControlHandle)_self->ob_itself); + _res = CtlObj_New((ControlHandle)_self->ob_itself); + return _res; } @@ -402,7 +407,8 @@ { PyObject *_res = NULL; - return MenuObj_New((MenuHandle)_self->ob_itself); + _res = MenuObj_New((MenuHandle)_self->ob_itself); + return _res; } @@ -1533,7 +1539,7 @@ return ResObj_New(itself); } -OptResObj_Convert(PyObject *v, Handle *p_itself) +int OptResObj_Convert(PyObject *v, Handle *p_itself) { PyObject *tmp;
