util.c: Replace mLib `DISCARD' with a plain `(void)' cast.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 20 Oct 2019 17:56:07 +0000 (18:56 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 10 Apr 2020 21:42:39 +0000 (22:42 +0100)
util.c

diff --git a/util.c b/util.c
index b39b7d5..03a39af 100644 (file)
--- a/util.c
+++ b/util.c
@@ -256,7 +256,7 @@ void *newtype(PyTypeObject *metaty,
     ty->ht_name = PyString_FromString(ty->ht_type.tp_name);
   if (ty->ht_name)
     ty->ht_type.tp_name = PyString_AS_STRING(ty->ht_name);
     ty->ht_name = PyString_FromString(ty->ht_type.tp_name);
   if (ty->ht_name)
     ty->ht_type.tp_name = PyString_AS_STRING(ty->ht_name);
-  DISCARD(PyObject_INIT(&ty->ht_type, metaty));
+  (void)PyObject_INIT(&ty->ht_type, metaty);
   Py_INCREF(metaty);
   return (ty);
 }
   Py_INCREF(metaty);
   return (ty);
 }