From 9d4e888ef57ef70acb22830c5bfb5e917208113e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Mar 2009 04:31:34 -0400 Subject: Cured several harmless compiler warnings --- src/xact.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/xact.cc') 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; -- cgit v1.2.3