The return value from PyObject_ClearWeakRefs() is no longer meaningful,

so make it void.
This commit is contained in:
Fred Drake 2001-02-26 18:56:37 +00:00
parent 4f9b13bac8
commit b60654bc15
4 changed files with 8 additions and 9 deletions

View file

@ -516,8 +516,7 @@ instance_dealloc(register PyInstanceObject *inst)
extern long _Py_RefTotal;
#endif
if (!PyObject_ClearWeakRefs((PyObject *) inst))
return;
PyObject_ClearWeakRefs((PyObject *) inst);
/* Temporarily resurrect the object. */
#ifdef Py_TRACE_REFS

View file

@ -1475,13 +1475,13 @@ PyObject_Free(void *p)
call site instead of requiring a test for NULL.
*/
static int
static void
empty_clear_weak_refs(PyObject *o)
{
return 1;
return;
}
int (*PyObject_ClearWeakRefs)(PyObject *) = empty_clear_weak_refs;
void (*PyObject_ClearWeakRefs)(PyObject *) = empty_clear_weak_refs;