Fixed some compiler warnings in non-debug mode

This commit is contained in:
John Wiegley 2009-06-16 18:50:37 +01:00
parent 3a926da4cb
commit 81db8a38fe

View file

@ -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