diff options
author | Andrew Stitcher <astitcher@apache.org> | 2011-06-07 21:33:46 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2011-06-07 21:33:46 +0000 |
commit | 8ea1598a13e2344a8733ffe2c79abacfe7f477f4 (patch) | |
tree | 5e90f3011f801e6b80e4165bd08431ea88498c92 /cpp/src/qpid/cluster/Cluster.cpp | |
parent | dea4bb69afc5f91f523af65580ce4a8d75d3df68 (diff) | |
download | qpid-python-8ea1598a13e2344a8733ffe2c79abacfe7f477f4.tar.gz |
QPID-3284: Eliminated warnings from gcc 4.6 compiler
- Removed a bunch of variables set but not further used.
- Rejigged some asserts which would now have unused vars
if compiler -DNDEBUG
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1133166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Cluster.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp index 0daf0c7f5a..ede8d96681 100644 --- a/cpp/src/qpid/cluster/Cluster.cpp +++ b/cpp/src/qpid/cluster/Cluster.cpp @@ -365,7 +365,8 @@ void Cluster::addShadowConnection(const boost::intrusive_ptr<Connection>& c) { assert(discarding); pair<ConnectionMap::iterator, bool> ib = connections.insert(ConnectionMap::value_type(c->getId(), c)); - assert(ib.second); + // Like this to avoid tripping up unused variable warning when NDEBUG set + if (!ib.second) assert(ib.second); } void Cluster::erase(const ConnectionId& id) { |