Silence more PyObject_INIT() unused value warnings.

This commit is contained in:
Christian Heimes 2013-12-04 09:34:29 +01:00
parent a3da7c5f8a
commit ecb4e6a9ab
1 changed files with 2 additions and 2 deletions

View File

@ -613,7 +613,7 @@ time_alloc(PyTypeObject *type, Py_ssize_t aware)
sizeof(_PyDateTime_BaseTime));
if (self == NULL)
return (PyObject *)PyErr_NoMemory();
PyObject_INIT(self, type);
(void)PyObject_INIT(self, type);
return self;
}
@ -628,7 +628,7 @@ datetime_alloc(PyTypeObject *type, Py_ssize_t aware)
sizeof(_PyDateTime_BaseDateTime));
if (self == NULL)
return (PyObject *)PyErr_NoMemory();
PyObject_INIT(self, type);
(void)PyObject_INIT(self, type);
return self;
}