From ecb4e6a9abf2d8342310679de048abd11e7703c2 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 4 Dec 2013 09:34:29 +0100 Subject: Silence more PyObject_INIT() unused value warnings. --- Modules/_datetimemodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index e4dc1bf..b4d4e2f 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -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; } -- cgit v0.12