--- a/examples/routing/manet-routing-compare.cc Mon May 23 11:51:29 2011 -0400
+++ b/examples/routing/manet-routing-compare.cc Mon May 23 15:15:06 2011 -0400
@@ -129,6 +129,9 @@
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
{