# HG changeset patch # User John Abraham # Date 1305363007 14400 # Node ID 0202763b3998966443f7370a0259d56df689f3d2 # Parent 9f045cf89be4d34639dbbb3322aa33350859bb2b Bug 1160 - optimized build ‘plugin’ set but not used, g++4.6.0 diff -r 9f045cf89be4 -r 0202763b3998 src/mesh/model/dot11s/peer-management-protocol.cc --- a/src/mesh/model/dot11s/peer-management-protocol.cc Sat May 14 04:47:05 2011 -0400 +++ b/src/mesh/model/dot11s/peer-management-protocol.cc Sat May 14 04:50:07 2011 -0400 @@ -385,6 +385,9 @@ 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 ()))