qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1127947 - /qpid/trunk/qpid/cpp/src/qpid/broker/SessionState.cpp
Date Thu, 26 May 2011 14:55:26 GMT
Author: chug
Date: Thu May 26 14:55:26 2011
New Revision: 1127947

URL: http://svn.apache.org/viewvc?rev=1127947&view=rev
Log:
QPID-3252

Touch up a compile failure when assert() compiles to nothing,
leaving an "unused" variable.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/SessionState.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/SessionState.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/SessionState.cpp?rev=1127947&r1=1127946&r2=1127947&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/SessionState.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/SessionState.cpp Thu May 26 14:55:26 2011
@@ -497,7 +497,9 @@ void SessionState::AsyncCommandCompleter
     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);
+    }
 }
 
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message