Bug 1155 - opt build ns3::PacketSocket::RecvFrom ‘found’ set but not used
opt build ns3::PacketSocket::RecvFrom ‘found’ set but not used
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: network
ns-3-dev
All All
: P5 trivial
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-16 12:46 UTC by John Abraham
Modified: 2011-08-09 19:15 UTC (History)
0 users

See Also:


Attachments
patch (514 bytes, patch)
2011-05-16 12:47 UTC, John Abraham
Details | Diff
patch (1.01 KB, patch)
2011-05-16 13:33 UTC, John Abraham
Details | Diff
patch (1.52 KB, patch)
2011-05-16 13:37 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: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