Silence more PyObject_INIT() unused value warnings.
This commit is contained in:
parent
a3da7c5f8a
commit
ecb4e6a9ab
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue