diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-06 23:04:27 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-06 23:04:27 -0600 |
commit | 71d0033b6f65260698cf0bf367002a9b6429a3fd (patch) | |
tree | 63fc939f0e613a1828fc0b7b473bc6c29578f074 /src/account.cc | |
parent | 488355e5d92923e1d764625457b866f4fc83d58b (diff) | |
download | fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.tar.gz fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.tar.bz2 fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.zip |
Corrected several compile and link problems
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/account.cc b/src/account.cc index e1874839..29c05719 100644 --- a/src/account.cc +++ b/src/account.cc @@ -89,8 +89,10 @@ account_t * account_t::find_account(const string& acct_name, if (has_flags(ACCOUNT_GENERATED)) account->add_flags(ACCOUNT_GENERATED); - std::pair<accounts_map::iterator, bool> result - = accounts.insert(accounts_map::value_type(first, account)); +#if defined(DEBUG_ON) + std::pair<accounts_map::iterator, bool> result = +#endif + accounts.insert(accounts_map::value_type(first, account)); assert(result.second); } else { account = (*i).second; |