Bug 1161 - opt build flow-monitor unused variables
authorJohn Abraham<john.abraham@gatech.edu>
Sat, 14 May 2011 04:52:55 -0400
changeset 7229 5e4a07a48a68
parent 7228 0202763b3998
child 7230 dae74efe7d78
Bug 1161 - opt build flow-monitor unused variables
src/flow-monitor/model/ipv4-flow-probe.cc
--- a/src/flow-monitor/model/ipv4-flow-probe.cc	Sat May 14 04:50:07 2011 -0400
+++ b/src/flow-monitor/model/ipv4-flow-probe.cc	Sat May 14 04:52:55 2011 -0400
@@ -327,7 +327,9 @@
   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 ();