[Python-checkins] cpython: Guard an LLTRACE variable to silence an unused variable warning.

brett.cannon python-checkins at python.org
Mon Apr 2 18:18:08 CEST 2012


http://hg.python.org/cpython/rev/bac033e488b4
changeset: 76072:bac033e488b4
user: Brett Cannon <brett at python.org>
date: Mon Apr 02 12:17:59 2012 -0400
summary:
 Guard an LLTRACE variable to silence an unused variable warning.
files:
 Python/ceval.c | 2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Python/ceval.c b/Python/ceval.c
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -822,7 +822,9 @@
 PyObject *names;
 PyObject *consts;
 
+#ifdef LLTRACE
 _Py_IDENTIFIER(__ltrace__);
+#endif
 
 /* Computed GOTOs, or
 the-optimization-commonly-but-improperly-known-as-"threaded code"
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /