Bugzilla – Bug 1153
optimized build : variable ‘tmp’ set but not used, g++ > 4.6.0
Last modified: 2011-08-09 19:15:03 UTC
This shows up only in optimized builds with g++ > 4.6.0 [ 656/1561] cxx: src/core/model/config.cc -> build/optimized/src/core/model/config_1.o ../src/core/model/config.cc: In member function ‘void ns3::Resolver::DoResolve(std::string, ns3::Ptr<ns3::Object>)’: ../src/core/model/config.cc:291:26: error: variable ‘tmp’ set but not used [-Werror=unused-but-set-variable] ../src/core/model/config.cc: In member function ‘void ns3::Resolver::DoArrayResolve(std::string, const ns3::ObjectVectorValue&)’: ../src/core/model/config.cc:427:26: error: variable ‘tmp’ set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors
Created attachment 1122 [details] patch
ok, please, applyl.