From 7d9b26973d2dd32eac10213bf4414a2ad9c28fb0 Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Thu, 26 May 2011 14:55:26 +0000 Subject: QPID-3252 Touch up a compile failure when assert() compiles to nothing, leaving an "unused" variable. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1127947 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp index 957d5bd4d2..119e5732c4 100644 --- a/cpp/src/qpid/broker/SessionState.cpp +++ b/cpp/src/qpid/broker/SessionState.cpp @@ -497,7 +497,9 @@ void SessionState::AsyncCommandCompleter::addPendingMessage(boost::intrusive_ptr qpid::sys::ScopedLock l(completerLock); std::pair > item(msg->getCommandId(), msg); bool unique = pendingMsgs.insert(item).second; - assert(unique); + if (!unique) { + assert(false); + } } -- cgit v1.2.1