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/exprbase.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/exprbase.h') diff --git a/src/exprbase.h b/src/exprbase.h index 0dbf3bff..cf81a0a7 100644 --- a/src/exprbase.h +++ b/src/exprbase.h @@ -155,17 +155,21 @@ public: result_type calc(scope_t& scope) { if (! compiled) { +#if defined(DEBUG_ON) if (SHOW_DEBUG("expr.compile")) { DEBUG("expr.compile", "Before compilation:"); dump(*_log_stream); } +#endif // defined(DEBUG_ON) compile(scope); +#if defined(DEBUG_ON) if (SHOW_DEBUG("expr.compile")) { DEBUG("expr.compile", "After compilation:"); dump(*_log_stream); } +#endif // defined(DEBUG_ON) } return real_calc(scope); -- cgit v1.2.3