summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-12-04 08:34:29 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-12-04 08:34:29 (GMT)
commitecb4e6a9abf2d8342310679de048abd11e7703c2 (patch)
tree79bc15b6cb651bd1a75447bc020bbf48eb585883 /Modules
parenta3da7c5f8aa7592c783728b0d3067ca0b978e462 (diff)
downloadcpython-ecb4e6a9abf2d8342310679de048abd11e7703c2.zip
cpython-ecb4e6a9abf2d8342310679de048abd11e7703c2.tar.gz
cpython-ecb4e6a9abf2d8342310679de048abd11e7703c2.tar.bz2
Silence more PyObject_INIT() unused value warnings.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_datetimemodule.c4
1 files 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;
}