From dd025e8ff66077d3d680a5b7b3955acc25802124 Mon Sep 17 00:00:00 2001 From: Andrey Mazo Date: Fri, 15 May 2009 13:52:35 +0400 Subject: [PATCH] Revert commit [c259eaefdd7f]. Make compiler happy. --- src/devices/mesh/dot11s/hwmp-mac-plugin.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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());