../src/lorawan/model/building-penetration-loss.cc: In member function ‘virtual double ns3::lorawan::BuildingPenetrationLoss::DoCalcRxPower(double, ns3::Ptr<ns3::MobilityModel>, ns3::Ptr<ns3::MobilityModel>) const’:
../src/lorawan/model/building-penetration-loss.cc:73:42: error: ‘bool ns3::MobilityBuildingInfo::IsOutdoor()’ is deprecated (declared at ./ns3/mobility-building-info.h:85) [-Werror=deprecated-declarations]
if ((b1->IsIndoor () && a1->IsOutdoor ()))
^
../src/lorawan/model/building-penetration-loss.cc:83:28: error: ‘bool ns3::MobilityBuildingInfo::IsOutdoor()’ is deprecated (declared at ./ns3/mobility-building-info.h:85) [-Werror=deprecated-declarations]
else if ((b1->IsOutdoor () && a1->IsIndoor ()))
^
../src/lorawan/model/building-penetration-loss.cc:94:27: error: ‘bool ns3::MobilityBuildingInfo::IsOutdoor()’ is deprecated (declared at ./ns3/mobility-building-info.h:85) [-Werror=deprecated-declarations]
else if (a1->IsOutdoor ()&& b1->IsOutdoor ())
^
../src/lorawan/model/building-penetration-loss.cc:94:46: error: ‘bool ns3::MobilityBuildingInfo::IsOutdoor()’ is deprecated (declared at ./ns3/mobility-building-info.h:85) [-Werror=deprecated-declarations]
else if (a1->IsOutdoor ()&& b1->IsOutdoor ())
^
cc1plus: all warnings being treated as errors
error 2
../src/lorawan/examples/complete-network-example.cc: In function ‘int main(int, char**)’:
../src/lorawan/examples/complete-network-example.cc:248:20: error: ‘static void ns3::BuildingsHelper::MakeMobilityModelConsistent()’ is deprecated [-Werror=deprecated-declarations]
BuildingsHelper::MakeMobilityModelConsistent ();
^
In file included from ../src/lorawan/examples/complete-network-example.cc:27:0:
./ns3/buildings-helper.h:62:15: note: declared here
static void MakeMobilityModelConsistent ();
^
../src/lorawan/examples/complete-network-example.cc:248:49: error: ‘static void ns3::BuildingsHelper::MakeMobilityModelConsistent()’ is deprecated [-Werror=deprecated-declarations]
BuildingsHelper::MakeMobilityModelConsistent ();
^
In file included from ../src/lorawan/examples/complete-network-example.cc:27:0:
./ns3/buildings-helper.h:62:15: note: declared here
static void MakeMobilityModelConsistent ();
^
cc1plus: all warnings being treated as errors
Expected Behavior
'build' finished successfully
Actual Behavior
build failed error 1
error 2
Steps to Reproduce the Problem
Specifications
A possible way to fix it
Refer to this commit in
ns-3-dev
IsOutdoor ()
to!IsIndoor ()
inlorawan/model/building-penetration-loss.cc
BuildingsHelper::MakeMobilityModelConsistent ();
at line 248 of thelorawan/examples/complete-network-example.cc