Bug 1162 part 2

This commit is contained in:
John Abraham
2011-05-18 13:02:10 -04:00
parent 0379ad69c1
commit 99b939ea2b

View File

@@ -82,7 +82,11 @@ WifiInterferenceTestCase::ReceivePacket (Ptr<Socket> socket)
{
Address addr;
socket->GetSockName (addr);
NS_LOG_UNCOND ("Received one packet! Socket: " << InetSocketAddress::ConvertFrom (addr).GetIpv4 () << " port: " << iaddr.GetPort ());
InetSocketAddress iaddr = InetSocketAddress::ConvertFrom (addr);
NS_LOG_UNCOND ("Received one packet! Socket: " << iaddr.GetIpv4 () << " port: " << iaddr.GetPort ());
//cast iaddr to void, to suppress 'iaddr' set but not used compiler warning
//in optimized builds
(void) iaddr;
}
void