X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/2b6d9fef8bbeb1d3eab693c4d7543f31b173610a..6c6986734f94c8d2b676a44b7c81c7941ea138e9:/util.c diff --git a/util.c b/util.c index b39b7d5..03a39af 100644 --- 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); }