From 4ef5c94422c884e8d61fabf3fd47acd8a35d75b1 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@1127947 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/SessionState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/broker/SessionState.cpp b/qpid/cpp/src/qpid/broker/SessionState.cpp index 957d5bd4d2..119e5732c4 100644 --- a/qpid/cpp/src/qpid/broker/SessionState.cpp +++ b/qpid/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