Bugzilla – Bug 1156
opt build ‘result’ set but not used, g++ > 4.6.0
Last modified: 2011-08-09 19:15:46 UTC
seen on optimized builds with g++ 4.6.0 [ 817/1561] cxx: src/internet/helper/internet-stack-helper.cc -> build/optimized/src/internet/helper/internet-stack-helper_1.o ../src/internet/helper/internet-stack-helper.cc: In member function ‘virtual void ns3::InternetStackHelper::EnablePcapIpv4Internal(std::string, ns3::Ptr<ns3::Ipv4>, uint32_t, bool)’: ../src/internet/helper/internet-stack-helper.cc:488:12: error: variable ‘result’ set but not used [-Werror=unused-but-set-variable] ../src/internet/helper/internet-stack-helper.cc: In member function ‘virtual void ns3::InternetStackHelper::EnablePcapIpv6Internal(std::string, ns3::Ptr<ns3::Ipv6>, uint32_t, bool)’: ../src/internet/helper/internet-stack-helper.cc:580:12: error: variable ‘result’ set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors
Created attachment 1127 [details] patch
Created attachment 1136 [details] another set
Created attachment 1138 [details] consolidated 1