diff --git a/examples/routing/manet-routing-compare.cc b/examples/routing/manet-routing-compare.cc index b09656b78..121e6c269 100644 --- a/examples/routing/manet-routing-compare.cc +++ b/examples/routing/manet-routing-compare.cc @@ -129,6 +129,9 @@ RoutingExperiment::ReceivePacket (Ptr 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 {