Shut up many more gcc warnings.

This commit is contained in:
Jack Jansen 2001-09-05 10:31:52 +00:00
parent 5a1516bce5
commit fd064863eb
31 changed files with 186 additions and 110 deletions

View file

@ -176,7 +176,8 @@ if (!PyArg_ParseTuple(_args, "O&", ResObj_Convert, &h))
return NULL;
l = (ListObject *)ListObj_New(as_List(h));
l->ob_must_be_disposed = 0;
return Py_BuildValue("O", l);
_res = Py_BuildValue("O", l);
return _res;
"""
f = ManualGenerator("as_List", as_List_body)
f.docstring = lambda: "(Resource)->List.\nReturns List object (which is not auto-freed!)"