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/global.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/global.cc') diff --git a/src/global.cc b/src/global.cc index 170509b0..35651ddb 100644 --- a/src/global.cc +++ b/src/global.cc @@ -391,11 +391,13 @@ global_scope_t::read_command_arguments(scope_t& scope, strings_list args) void global_scope_t::normalize_session_options() { +#if defined(LOGGING_ON) INFO("Initialization file is " << HANDLER(init_file_).str()); INFO("Price database is " << session().HANDLER(price_db_).str()); foreach (const path& pathname, session().HANDLER(file_).data_files) INFO("Journal file is " << pathname.string()); +#endif // defined(LOGGING_ON) } expr_t::func_t global_scope_t::look_for_precommand(scope_t& scope, -- cgit v1.2.3