Bug 1155

Summary: opt build ns3::PacketSocket::RecvFrom ‘found’ set but not used
Product: ns-3 Reporter: John Abraham <john.abraham.in>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch
patch
patch

Description John Abraham 2011-05-16 12:46:00 UTC
This is seen only in g++ 4.6.0 optimized builds
../src/network/utils/packet-socket.cc: In member function ‘virtual ns3::Ptr<ns3::Packet> ns3::PacketSocket::RecvFrom(uint32_t, uint32_t, ns3::Address&)’:
../src/network/utils/packet-socket.cc:441:12: error: variable ‘found’ set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
Comment 1 John Abraham 2011-05-16 12:47:29 UTC
Created attachment 1124 [details]
patch
Comment 2 John Abraham 2011-05-16 13:33:34 UTC
Created attachment 1125 [details]
patch
Comment 3 John Abraham 2011-05-16 13:37:51 UTC
Created attachment 1126 [details]
patch