]> granicus.if.org Git - python/commitdiff
Silence more PyObject_INIT() unused value warnings.
authorChristian Heimes <christian@cheimes.de>
Wed, 4 Dec 2013 08:34:29 +0000 (09:34 +0100)
committerChristian Heimes <christian@cheimes.de>
Wed, 4 Dec 2013 08:34:29 +0000 (09:34 +0100)
Modules/_datetimemodule.c

index e4dc1bfa73a8c1e2131e15c4dc8d58ab834d8bde..b4d4e2f2bfa769f4fcf521d2b0b3f419ae52e253 100644 (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;
 }