diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c index 8090a485f4a..68404f2c6cd 100644 --- a/Modules/_testmultiphase.c +++ b/Modules/_testmultiphase.c @@ -23,11 +23,10 @@ Example_traverse(ExampleObject *self, visitproc visit, void *arg) return 0; } -static int +static void Example_finalize(ExampleObject *self) { Py_CLEAR(self->x_attr); - return 0; } static PyObject * diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c index 5041ac8284a..5586989d039 100644 --- a/Modules/xxlimited.c +++ b/Modules/xxlimited.c @@ -47,11 +47,10 @@ Xxo_traverse(XxoObject *self, visitproc visit, void *arg) return 0; } -static int +static void Xxo_finalize(XxoObject *self) { Py_CLEAR(self->x_attr); - return 0; } static PyObject *