From: Neil Schemenauer Date: Fri, 29 Mar 2002 03:04:25 +0000 (+0000) Subject: Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined. X-Git-Tag: v2.3c1~6273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b883310d59a2b44f502f191186ba40a3689d11ee;p=thirdparty%2FPython%2Fcpython.git Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined. --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index ed25bd4fec89..d98e6a12feda 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -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 *