summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-04 06:02:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-04 06:02:00 -0400
commitb848ace76866188701a6a704a9531c4eeb2bc71a (patch)
tree6fdb3e1cf8a8239c89c03907447a08402bef391b /src/xact.cc
parentf16a5382ed9a9750c69595e5752f80e39cf7a4b8 (diff)
downloadfork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.tar.gz
fork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.tar.bz2
fork-ledger-b848ace76866188701a6a704a9531c4eeb2bc71a.zip
Allow opt -NDEBUG build to complete without warnings
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 569e5869..6c10ac04 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -62,10 +62,12 @@ xact_base_t::~xact_base_t()
void xact_base_t::add_post(post_t * post)
{
+#if !defined(NO_ASSERTS)
// You can add temporary postings to transactions, but not real postings to
// temporary transactions.
if (! post->has_flags(ITEM_TEMP))
assert(! has_flags(ITEM_TEMP));
+#endif
posts.push_back(post);
}