]> granicus.if.org Git - python/commitdiff
_Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd
authorSkip Montanaro <skip@pobox.com>
Sat, 8 Jul 2000 12:04:57 +0000 (12:04 +0000)
committerSkip Montanaro <skip@pobox.com>
Sat, 8 Jul 2000 12:04:57 +0000 (12:04 +0000)
Objects/classobject.c

index 4f73ff8b2fed6046931c1a8c1a14c747ae0d81d4..0e1308bbc0a257b0bfc089d5543e051e7d158ddf 100644 (file)
@@ -523,7 +523,9 @@ instance_dealloc(inst)
        PyObject *error_type, *error_value, *error_traceback;
        PyObject *del;
        static PyObject *delstr;
+#ifdef Py_TRACE_REFS
        extern long _Py_RefTotal;
+#endif
        PyObject_GC_Fini(inst);
        /* Call the __del__ method if it exists.  First temporarily
           revive the object and save the current exception, if any. */