From: Skip Montanaro Date: Sat, 8 Jul 2000 12:04:57 +0000 (+0000) Subject: _Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd X-Git-Tag: v2.0b1~1001 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ca150bdb219a0039277808e760ed8e4fcdc592f;p=python _Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd --- diff --git a/Objects/classobject.c b/Objects/classobject.c index 4f73ff8b2f..0e1308bbc0 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. */