Bugzilla – Bug 2114
Compiler error in last commit on wifi
Last modified: 2015-05-06 16:30:47 UTC
Hi, commit which resolv Bug 2075 gives me this error: ../src/wifi/model/mac-low.cc: In member function ‘void ns3::MacLow::SendDataAfterCts(ns3::Mac48Address, ns3::Time, ns3::WifiMode)’: ../src/wifi/model/mac-low.cc:2001:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for(int i = 0; i < m_txPackets.size(); i++) ^ cc1plus: all warnings being treated as errors "int i" should be replaced with unsigned int, or even better uint32_t.
Indeed, uint32_t should be used here, sorry for the typo. I will fix this in a new changeset in few hours. Thanks for reporting.
It seems to have been already fixed by Tom in changeset 11360:b2777e7f5653. Could you confirm the warning issue has gone?
Maybe I'm little behind, because I'm using the git mirror... I'll wait the sync between the repos.
fixed in changeset 11360:b2777e7f5653