summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-11 05:27:13 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-11 05:27:13 -0500
commit8fe68c5fc3a71fa17cf309f9b87b5089ecce8996 (patch)
treeab47cb9f61295e3ef51e8d773617d18edcf0d380 /src/main.cc
parenta2b6a81caedeebc4df892ed23bf60b1fbe089916 (diff)
downloadfork-ledger-8fe68c5fc3a71fa17cf309f9b87b5089ecce8996.tar.gz
fork-ledger-8fe68c5fc3a71fa17cf309f9b87b5089ecce8996.tar.bz2
fork-ledger-8fe68c5fc3a71fa17cf309f9b87b5089ecce8996.zip
Guarded against unreachable code warnings
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index e341b526..dc0798e3 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -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!
}