Guarded against unreachable code warnings

This commit is contained in:
John Wiegley 2012-03-11 05:27:13 -05:00
parent a2b6a81cae
commit 8fe68c5fc3
2 changed files with 4 additions and 4 deletions

View file

@ -201,6 +201,7 @@ int main(int argc, char * argv[], char * envp[])
// up everything by closing the session and deleting the session object, and
// then shutting down the memory tracing subsystem. Otherwise, let it all
// leak because we're about to exit anyway.
#if defined(VERIFY_ON)
IF_VERIFY() {
checked_delete(global_scope);
@ -208,7 +209,9 @@ int main(int argc, char * argv[], char * envp[])
#if defined(VERIFY_ON)
shutdown_memory_tracing();
#endif
} else {
} else
#endif
{
INFO("Ledger ended"); // let global_scope leak!
}

View file

@ -553,9 +553,6 @@ void logger_func(log_level_t level)
#if defined(VERIFY_ON)
IF_VERIFY()
*_log_stream << " TIME OBJSZ MEMSZ" << std::endl;
#else
IF_VERIFY()
*_log_stream << " TIME" << std::endl;
#endif
}