aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-03 14:07:32 +0000
committerGuido van Rossum <guido@python.org>2002-04-03 14:07:32 +0000
commit50bfe3511283217001842615a58c15448f433351 (patch)
treea8939a3ff2ead3dee5d872c1d112b54e54e208dc
parentUpdate the PEP URL format to point to python.org. (diff)
downloadcpython-50bfe3511283217001842615a58c15448f433351.tar.gz
cpython-50bfe3511283217001842615a58c15448f433351.tar.bz2
cpython-50bfe3511283217001842615a58c15448f433351.zip
The body of_PyObject_GC_UnTrack() should only be compiled #ifdef
WITH_CYCLE_GC. (Neil pointed this out before the weekend, and I fixed it right away, but forgot to check it in.)
-rw-r--r--Modules/gcmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index b6c93a9c81a..e3bb669d361 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 *