Bugzilla – Bug 1158
opt build olsr variable ‘now’ set but not used
Last modified: 2011-08-09 19:16:11 UTC
seen on optimized builds with g++ 4.6.0 Waf: Entering directory `/root/ns-3-test/ns-3-allinone/ns-3-dev/build' [ 895/1561] cxx: src/olsr/model/olsr-routing-protocol.cc -> build/optimized/src/olsr/model/olsr-routing-protocol_1.o ../src/olsr/model/olsr-routing-protocol.cc: In member function ‘void ns3::olsr::RoutingProtocol::Dump()’: ../src/olsr/model/olsr-routing-protocol.cc:3317:8: error: variable ‘now’ set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors
Created attachment 1129 [details] patch
Comment on attachment 1129 [details] patch +1
Created attachment 1130 [details] Fix Patch attached.
I'm late. And yes, +1. :)