Bug 1153

Summary: optimized build : variable ‘tmp’ set but not used, g++ > 4.6.0
Product: ns-3 Reporter: John Abraham <john.abraham.in>
Component: coreAssignee: John Abraham <john.abraham.in>
Status: RESOLVED FIXED    
Severity: trivial CC: mathieu.lacage, ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch

Description John Abraham 2011-05-16 12:26:17 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
Comment 1 John Abraham 2011-05-16 12:28:48 UTC
Created attachment 1122 [details]
patch
Comment 2 Mathieu Lacage 2011-05-16 15:57:48 UTC
ok, please, applyl.