summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/MessageMap.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-07-24 19:18:14 +0000
committerAlan Conway <aconway@apache.org>2012-07-24 19:18:14 +0000
commitd2b59f0faca606a677d3fa7e61667e54ae8c57b5 (patch)
tree681673b90cbb82e51d02c0b3f1a23c867a21e75a /cpp/src/qpid/broker/MessageMap.cpp
parenteec0e3ddc2236ddd8a222e513a3e551933552b48 (diff)
downloadqpid-python-d2b59f0faca606a677d3fa7e61667e54ae8c57b5.tar.gz
QPID-4165: Fix unsused variable warnings when compiling with -DNDEBUG
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1365234 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/MessageMap.cpp')
-rw-r--r--cpp/src/qpid/broker/MessageMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/MessageMap.cpp b/cpp/src/qpid/broker/MessageMap.cpp
index d6702a9336..592f3fefde 100644
--- a/cpp/src/qpid/broker/MessageMap.cpp
+++ b/cpp/src/qpid/broker/MessageMap.cpp
@@ -146,7 +146,7 @@ bool MessageMap::push(const QueuedMessage& added, QueuedMessage& removed)
void MessageMap::setPosition(const framing::SequenceNumber& seq) {
// Nothing to do, just assert that the precondition is respected and there
// are no undeleted messages after seq.
- assert(messages.empty() || (--messages.end())->first <= seq);
+ (void) seq; assert(messages.empty() || (--messages.end())->first <= seq);
}
void MessageMap::foreach(Functor f)