summaryrefslogtreecommitdiff
path: root/src/account.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/account.cc')
-rw-r--r--src/account.cc6
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;