From 4ca150bdb219a0039277808e760ed8e4fcdc592f Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Sat, 8 Jul 2000 12:04:57 +0000 Subject: _Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd --- Objects/classobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/classobject.c b/Objects/classobject.c index 4f73ff8..0e1308b 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -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. */ -- cgit v0.12