changeset 7231 | 619d57dab032 |
parent 7196 | 0f12b1572bca |
child 7252 | c8200621e252 |
--- a/examples/energy/energy-model-example.cc Wed May 18 12:28:03 2011 -0400 +++ b/examples/energy/energy-model-example.cc Wed May 18 12:59:20 2011 -0400 @@ -53,6 +53,9 @@ NS_LOG_UNCOND ("--\nReceived one packet! Socket: "<< iaddr.GetIpv4 () << " port: " << iaddr.GetPort () << " at time = " << Simulator::Now ().GetSeconds () << "\n--"); + //cast iaddr to void, to suppress 'iaddr' set but not used compiler warning + //in optimized builds + (void) iaddr; } } }