Bug 1153 - optimized build : variable ‘tmp’ set but not used, g++ > 4.6.0
optimized build : variable ‘tmp’ set but not used, g++ > 4.6.0
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
ns-3-dev
All All
: P5 trivial
Assigned To: John Abraham
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-16 12:26 UTC by John Abraham
Modified: 2011-08-09 19:15 UTC (History)
2 users (show)

See Also:


Attachments
patch (839 bytes, patch)
2011-05-16 12:28 UTC, John Abraham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.