Fixed some compiler warnings in non-debug mode
This commit is contained in:
parent
3a926da4cb
commit
81db8a38fe
1 changed files with 6 additions and 0 deletions
|
|
@ -272,11 +272,13 @@ namespace {
|
||||||
added->code = matching->code;
|
added->code = matching->code;
|
||||||
added->note = matching->note;
|
added->note = matching->note;
|
||||||
|
|
||||||
|
#if defined(DEBUG_ON)
|
||||||
DEBUG("derive.xact", "Setting payee from match: " << added->payee);
|
DEBUG("derive.xact", "Setting payee from match: " << added->payee);
|
||||||
if (added->code)
|
if (added->code)
|
||||||
DEBUG("derive.xact", "Setting code from match: " << *added->code);
|
DEBUG("derive.xact", "Setting code from match: " << *added->code);
|
||||||
if (added->note)
|
if (added->note)
|
||||||
DEBUG("derive.xact", "Setting note from match: " << *added->note);
|
DEBUG("derive.xact", "Setting note from match: " << *added->note);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
added->payee = tmpl.payee_mask.expr.str();
|
added->payee = tmpl.payee_mask.expr.str();
|
||||||
DEBUG("derive.xact", "Setting payee from template: " << added->payee);
|
DEBUG("derive.xact", "Setting payee from template: " << added->payee);
|
||||||
|
|
@ -375,13 +377,17 @@ namespace {
|
||||||
account_t * acct = NULL;
|
account_t * acct = NULL;
|
||||||
if (! acct) {
|
if (! acct) {
|
||||||
acct = journal.find_account_re(post.account_mask->expr.str());
|
acct = journal.find_account_re(post.account_mask->expr.str());
|
||||||
|
#if defined(DEBUG_ON)
|
||||||
if (acct)
|
if (acct)
|
||||||
DEBUG("derive.xact", "Found account as a regular expression");
|
DEBUG("derive.xact", "Found account as a regular expression");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (! acct) {
|
if (! acct) {
|
||||||
acct = journal.find_account(post.account_mask->expr.str());
|
acct = journal.find_account(post.account_mask->expr.str());
|
||||||
|
#if defined(DEBUG_ON)
|
||||||
if (acct)
|
if (acct)
|
||||||
DEBUG("derive.xact", "Found (or created) account by name");
|
DEBUG("derive.xact", "Found (or created) account by name");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find out the default commodity to use by looking at the last
|
// Find out the default commodity to use by looking at the last
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue