diff options
author | Charles E. Rolke <chug@apache.org> | 2011-05-26 14:55:26 +0000 |
---|---|---|
committer | Charles E. Rolke <chug@apache.org> | 2011-05-26 14:55:26 +0000 |
commit | 4ef5c94422c884e8d61fabf3fd47acd8a35d75b1 (patch) | |
tree | d9955f7022ab6eb95667bed1f4f9ccd133a4401e | |
parent | fc50d3132480f7225281e2fbc7fa751ea49e2e29 (diff) | |
download | qpid-python-4ef5c94422c884e8d61fabf3fd47acd8a35d75b1.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@1127947 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/qpid/broker/SessionState.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<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); + } } |