]> granicus.if.org Git - python/commitdiff
Guard an LLTRACE variable to silence an unused variable warning.
authorBrett Cannon <brett@python.org>
Mon, 2 Apr 2012 16:17:59 +0000 (12:17 -0400)
committerBrett Cannon <brett@python.org>
Mon, 2 Apr 2012 16:17:59 +0000 (12:17 -0400)
Python/ceval.c

index ae0bd242a0173e4a998acda5be7a4b12c6df3b1c..7908d444e187e588cd97754e157cd5942220d3cd 100644 (file)
@@ -822,7 +822,9 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
     PyObject *names;
     PyObject *consts;
 
+#ifdef LLTRACE
     _Py_IDENTIFIER(__ltrace__);
+#endif
 
 /* Computed GOTOs, or
        the-optimization-commonly-but-improperly-known-as-"threaded code"