Manet-routing example , unused variable

John Abraham 2011-05-23 15:15:06 -04:00
parent 688b5c97bd
commit 8f417ffb78
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ RoutingExperiment::ReceivePacket (Ptr<Socket> socket)
InetSocketAddress addr = InetSocketAddress::ConvertFrom (tag.GetAddress ());
NS_LOG_UNCOND (Simulator::Now ().GetSeconds () << " " << socket->GetNode ()->GetId ()
<< " received one packet from " << addr.GetIpv4 ());
//cast addr to void, to suppress 'addr' set but not used
//compiler warning in optimized builds
(void) addr;
}
else
{