summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-04 04:31:34 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-04 04:31:34 -0400
commit9d4e888ef57ef70acb22830c5bfb5e917208113e (patch)
treeb82484469989cfa6f546d1827dfd382b3de8dfe1 /src/xact.cc
parent2d63c9364af57c732003afc7adddeb8ce62a1988 (diff)
downloadfork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.tar.gz
fork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.tar.bz2
fork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.zip
Cured several harmless compiler warnings
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 5013ec15..132f2ebf 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -431,8 +431,10 @@ void auto_xact_t::extend_xact(xact_base_t& xact, bool post_handler)
<< "amount " << initial_post->amount << " (precision "
<< initial_post->amount.precision() << ")");
+#if defined(DEBUG_ON)
if (initial_post->amount.keep_precision())
DEBUG("xact.extend", " precision is kept");
+#endif
DEBUG("xact.extend",
"Posting on line " << post->beg_line << ": "
@@ -440,10 +442,12 @@ void auto_xact_t::extend_xact(xact_base_t& xact, bool post_handler)
<< " (precision " << post->amount.precision()
<< " != " << amt.precision() << ")");
+#if defined(DEBUG_ON)
if (post->amount.keep_precision())
DEBUG("xact.extend", " precision is kept");
if (amt.keep_precision())
DEBUG("xact.extend", " amt precision is kept");
+#endif
}
account_t * account = post->account;