summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2011-05-26 14:55:26 +0000
committerCharles E. Rolke <chug@apache.org>2011-05-26 14:55:26 +0000
commit7d9b26973d2dd32eac10213bf4414a2ad9c28fb0 (patch)
tree3ef836488d467730fbfa67da23fc03fff3d44e35
parent007c33a08ca0ef27cae50d3fbb1661d57351c99e (diff)
downloadqpid-python-7d9b26973d2dd32eac10213bf4414a2ad9c28fb0.tar.gz
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
-rw-r--r--cpp/src/qpid/broker/SessionState.cpp4
1 files changed, 3 insertions, 1 deletions
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<qpid::sys::Mutex> l(completerLock);
std::pair<SequenceNumber, boost::intrusive_ptr<Message> > item(msg->getCommandId(), msg);
bool unique = pendingMsgs.insert(item).second;
- assert(unique);
+ if (!unique) {
+ assert(false);
+ }
}