From c3add7688a355bd92f0c9e5bb1d20c92af84db7e Mon Sep 17 00:00:00 2001 From: John Abraham Date: Sat, 14 May 2011 04:50:07 -0400 Subject: [PATCH] =?UTF-8?q?Bug=201160=20-=20optimized=20build=20=E2=80=98p?= =?UTF-8?q?lugin=E2=80=99=20set=20but=20not=20used,=20g++4.6.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mesh/model/dot11s/peer-management-protocol.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesh/model/dot11s/peer-management-protocol.cc b/src/mesh/model/dot11s/peer-management-protocol.cc index f1545c69b..1860a1343 100644 --- a/src/mesh/model/dot11s/peer-management-protocol.cc +++ b/src/mesh/model/dot11s/peer-management-protocol.cc @@ -385,6 +385,9 @@ PeerManagementProtocol::DoShiftBeacon (uint32_t interface) NS_ASSERT (iface != m_peerLinks.end ()); PeerManagementProtocolMacMap::const_iterator plugin = m_plugins.find (interface); NS_ASSERT (plugin != m_plugins.end ()); + // cast plugin to void, to suppress 'plugin' set but not used, compiler warning + // in optimized builds + (void) plugin; std::map::const_iterator lastBeacon = m_lastBeacon.find (interface); std::map::const_iterator beaconInterval = m_beaconInterval.find (interface); if ((lastBeacon == m_lastBeacon.end ()) || (beaconInterval == m_beaconInterval.end ()))