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/commodity.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commodity.cc') diff --git a/src/commodity.cc b/src/commodity.cc index 243d2a6c..71658103 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -402,10 +402,12 @@ commodity_t::exchange(const amount_t& amount, { DEBUG("commodity.prices.add", "exchange: " << amount << " for " << cost); DEBUG("commodity.prices.add", "exchange: is-per-unit = " << is_per_unit); +#if defined(DEBUG_ON) if (moment) DEBUG("commodity.prices.add", "exchange: moment = " << *moment); if (tag) DEBUG("commodity.prices.add", "exchange: tag = " << *tag); +#endif commodity_t& commodity(amount.commodity()); -- cgit v1.2.3