From b848ace76866188701a6a704a9531c4eeb2bc71a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 4 Jun 2010 06:02:00 -0400 Subject: Allow opt -NDEBUG build to complete without warnings --- src/op.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/op.cc') diff --git a/src/op.cc b/src/op.cc index df222802..ca720535 100644 --- a/src/op.cc +++ b/src/op.cc @@ -78,10 +78,12 @@ expr_t::ptr_op_t expr_t::op_t::compile(scope_t& scope, const int depth) // Identifier references are first looked up at the point of // definition, and then at the point of every use if they could // not be found there. +#if defined(DEBUG_ON) if (SHOW_DEBUG("expr.compile")) { DEBUG("expr.compile", "Found definition:"); def->dump(*_log_stream, 0); } +#endif // defined(DEBUG_ON) return copy(def); } else if (left()) { -- cgit v1.2.3