From b848ace76866188701a6a704a9531c4eeb2bc71a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 4 Jun 2010 06:02:00 -0400 Subject: Allow opt -NDEBUG build to complete without warnings --- src/xact.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xact.cc') 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); } -- cgit v1.2.3