diff --git a/src/devices/mesh/dot11s/hwmp-mac-plugin.cc b/src/devices/mesh/dot11s/hwmp-mac-plugin.cc index 6c30c3001..9aaee630f 100644 --- a/src/devices/mesh/dot11s/hwmp-mac-plugin.cc +++ b/src/devices/mesh/dot11s/hwmp-mac-plugin.cc @@ -135,7 +135,11 @@ HwmpMacPlugin::UpdateOutcomingFrame (Ptr packet, WifiMacHeader & header, return true; HwmpTag tag; bool tagExists = packet->RemovePacketTag(tag); - NS_ASSERT (tagExists); + if (!tagExists) + { + //do it this way to silence compiler + NS_ASSERT (false); + } MeshHeader meshHdr; meshHdr.SetMeshSeqno(tag.GetSeqno());