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 ()))