chiark / gitweb /
catacomb-python.h: Add a macro to declare module init functions.
[mLib-python] / util.c
diff --git a/util.c b/util.c
index b39b7d553496259a7dfcb0b9a364531b2bbef754..03a39af8f03a65cc71655c9873cb6f229da2221c 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);
-  DISCARD(PyObject_INIT(&ty->ht_type, metaty));
+  (void)PyObject_INIT(&ty->ht_type, metaty);
   Py_INCREF(metaty);
   return (ty);
 }