Bug 1152 part 2 , variable set but not used , g++4.6.0
authorJohn Abraham<john.abraham@gatech.edu>
Sat, 14 May 2011 03:57:30 -0400
changeset 7217 09c515917388
parent 7216 31d6aadf369c
child 7218 55cc123e9acd
Bug 1152 part 2 , variable set but not used , g++4.6.0
examples/socket/socket-bound-static-routing.cc
--- a/examples/socket/socket-bound-static-routing.cc	Sat May 14 03:49:21 2011 -0400
+++ b/examples/socket/socket-bound-static-routing.cc	Sat May 14 03:57:30 2011 -0400
@@ -193,8 +193,7 @@
   Ptr<Packet> packet = socket->RecvFrom (from);
   packet->RemoveAllPacketTags ();
   packet->RemoveAllByteTags ();
-  InetSocketAddress address = InetSocketAddress::ConvertFrom (from);
-  NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << address.GetIpv4());
+  NS_LOG_INFO ("Source Received " << packet->GetSize () << " bytes from " << InetSocketAddress::ConvertFrom (from).GetIpv4());
   if (socket->GetBoundNetDevice ())
     {
       NS_LOG_INFO ("Socket was bound");