Bug 2114

Summary: Compiler error in last commit on wifi
Product: ns-3 Reporter: natale.patriciello
Component: wifiAssignee: sebastien.deronne
Status: RESOLVED FIXED    
Severity: major CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: Linux   

Description natale.patriciello 2015-05-05 08:52:06 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.
Comment 1 sebastien.deronne 2015-05-05 08:57:40 UTC
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.
Comment 2 sebastien.deronne 2015-05-05 09:08:03 UTC
It seems to have been already fixed by Tom in changeset 11360:b2777e7f5653.
Could you confirm the warning issue has gone?
Comment 3 natale.patriciello 2015-05-05 09:48:22 UTC
Maybe I'm little behind, because I'm using the git mirror... I'll wait the sync between the repos.
Comment 4 sebastien.deronne 2015-05-06 16:30:47 UTC
fixed in changeset 11360:b2777e7f5653