Bug 1161 - opt build flow-monitor unused variables

This commit is contained in:
John Abraham
2011-05-14 04:52:55 -04:00
parent c3add7688a
commit 5aec43e279

View File

@@ -327,7 +327,9 @@ Ipv4FlowProbe::QueueDropLogger (Ptr<const Packet> ipPayload)
bool tagFound;
tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
NS_ASSERT_MSG (tagFound, "FlowProbeTag is missing");
// cast tagFound to void, to suppress 'tagFound' set but not used compiler
// warning in optimized builds
(void) tagFound;
FlowId flowId = fTag.GetFlowId ();
FlowPacketId packetId = fTag.GetPacketId ();
uint32_t size = fTag.GetPacketSize ();