fix optimized build
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 01 Jun 2010 09:46:39 +0200
changeset 6326 1bb22e1a2b59
parent 6325 3a794ee1238f
child 6327 246934d7b912
fix optimized build
src/contrib/flow-monitor/ipv4-flow-probe.cc
--- a/src/contrib/flow-monitor/ipv4-flow-probe.cc	Mon May 31 22:23:54 2010 -0700
+++ b/src/contrib/flow-monitor/ipv4-flow-probe.cc	Tue Jun 01 09:46:39 2010 +0200
@@ -234,7 +234,8 @@
       Ipv4FlowProbeTag fTag;
 
       // ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
-      bool tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
+      bool tagFound;
+      tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
       NS_ASSERT_MSG (tagFound, "Ipv4FlowProbeTag is missing");
 
       uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
@@ -274,7 +275,8 @@
       Ipv4FlowProbeTag fTag;
 
       // ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
-      bool tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
+      bool tagFound;
+      tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
       NS_ASSERT_MSG (tagFound, "Ipv4FlowProbeTag is missing");
 
       uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
@@ -315,7 +317,8 @@
   Ipv4FlowProbeTag fTag;
 
   // ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
-  bool tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
+  bool tagFound;
+  tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
   NS_ASSERT_MSG (tagFound, "FlowProbeTag is missing");
   
   FlowId flowId = fTag.GetFlowId ();