From 81db8a38fe0ca02c86d6e23fca8464616f7c3da6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 16 Jun 2009 18:50:37 +0100 Subject: Fixed some compiler warnings in non-debug mode --- src/derive.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/derive.cc b/src/derive.cc index e6237bf4..2fe5754f 100644 --- a/src/derive.cc +++ b/src/derive.cc @@ -272,11 +272,13 @@ namespace { added->code = matching->code; added->note = matching->note; +#if defined(DEBUG_ON) DEBUG("derive.xact", "Setting payee from match: " << added->payee); if (added->code) DEBUG("derive.xact", "Setting code from match: " << *added->code); if (added->note) DEBUG("derive.xact", "Setting note from match: " << *added->note); +#endif } else { added->payee = tmpl.payee_mask.expr.str(); DEBUG("derive.xact", "Setting payee from template: " << added->payee); @@ -375,13 +377,17 @@ namespace { account_t * acct = NULL; if (! acct) { acct = journal.find_account_re(post.account_mask->expr.str()); +#if defined(DEBUG_ON) if (acct) DEBUG("derive.xact", "Found account as a regular expression"); +#endif } if (! acct) { acct = journal.find_account(post.account_mask->expr.str()); +#if defined(DEBUG_ON) if (acct) DEBUG("derive.xact", "Found (or created) account by name"); +#endif } // Find out the default commodity to use by looking at the last -- cgit v1.2.3