Bug 1152 part 2 , variable set but not used , g++4.6.0

This commit is contained in:
John Abraham committed 2011-05-14 03:57:30 -04:00
1 parent a08e70cd3b
commit 4dd9a58bcb
1 file changed
+1 -2
@@ -193,8 +193,7 @@ srcSocketRecv (Ptr<Socket> socket)
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");