Bug 1126 - g++->= 4.5.x ˜interfaceOther" may be used uninitialized in this function
g++->= 4.5.x ˜interfaceOther" may be used uninitialized in this function
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3-dev
All All
: P5 blocker
Assigned To: George Riley
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-05 18:27 UTC by John Abraham
Modified: 2011-05-26 14:40 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Abraham 2011-05-05 18:27:07 UTC
With g++ 4.5.3 
we get
[ 798/1587] cxx: src/internet/model/global-router-interface.cc -> build/optimized/src/internet/model/global-router-interface_1.o
cc1plus: warnings being treated as errors
../src/internet/model/global-router-interface.cc: In member function ‘ns3::Ipv4Address ns3::GlobalRouter::FindDesignatedRouterForLink(ns3::Ptr<ns3::NetDevice>, bool) const’:
../src/internet/model/global-router-interface.cc:1293:24: error: ‘interfaceOther’ may be used uninitialized in this function
../src/internet/model/global-router-interface.cc:1346:24: error: ‘interfaceOther’ may be used uninitialized in this function
Waf: Leaving directory `/root/buildslave/full-fc64-14-g++-4.5.3/build/build'
Comment 1 Tom Henderson 2011-05-06 00:30:50 UTC
(In reply to comment #0)
> With g++ 4.5.3 
> we get
> [ 798/1587] cxx: src/internet/model/global-router-interface.cc ->
> build/optimized/src/internet/model/global-router-interface_1.o
> cc1plus: warnings being treated as errors
> ../src/internet/model/global-router-interface.cc: In member function
> ‘ns3::Ipv4Address
> ns3::GlobalRouter::FindDesignatedRouterForLink(ns3::Ptr<ns3::NetDevice>, bool)
> const’:
> ../src/internet/model/global-router-interface.cc:1293:24: error:
> ‘interfaceOther’ may be used uninitialized in this function
> ../src/internet/model/global-router-interface.cc:1346:24: error:
> ‘interfaceOther’ may be used uninitialized in this function
> Waf: Leaving directory `/root/buildslave/full-fc64-14-g++-4.5.3/build/build'


Please close this bug if I silenced it with the recent checkin (can't test it myself).