]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The body of_PyObject_GC_UnTrack() should only be compiled #ifdef
authorGuido van Rossum <guido@python.org>
Wed, 3 Apr 2002 14:07:32 +0000 (14:07 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 3 Apr 2002 14:07:32 +0000 (14:07 +0000)
WITH_CYCLE_GC.  (Neil pointed this out before the weekend, and I fixed
it right away, but forgot to check it in.)

Modules/gcmodule.c

index b6c93a9c81ab571c4c87f7533bec9c9a5d06d9b3..e3bb669d361532a1258977f9c512b5d52861a8b5 100644 (file)
@@ -819,9 +819,11 @@ _PyObject_GC_Track(PyObject *op)
 void
 _PyObject_GC_UnTrack(PyObject *op)
 {
+#ifdef WITH_CYCLE_GC
        PyGC_Head *gc = AS_GC(op);
        if (gc->gc.gc_next != NULL)
                _PyObject_GC_UNTRACK(op);
+#endif
 }
 
 PyObject *