diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-16 18:50:37 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-16 18:50:37 +0100 |
commit | 81db8a38fe0ca02c86d6e23fca8464616f7c3da6 (patch) | |
tree | 6fa4c7fa09ae317c81c3f58a93dfdec323cec7e2 /src | |
parent | 3a926da4cbffe903d138f8df9f5cb33332ff1030 (diff) | |
download | fork-ledger-81db8a38fe0ca02c86d6e23fca8464616f7c3da6.tar.gz fork-ledger-81db8a38fe0ca02c86d6e23fca8464616f7c3da6.tar.bz2 fork-ledger-81db8a38fe0ca02c86d6e23fca8464616f7c3da6.zip |
Fixed some compiler warnings in non-debug mode
Diffstat (limited to 'src')
-rw-r--r-- | src/derive.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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 |