From 1ad81ee94e9f6c3f7d77d118750fc9a370eea8a6 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Fri, 29 May 2015 10:27:25 +0200 Subject: [PATCH] Silence some warnings AIBallistic: wrong order of member initialization Other: unused variables --- src/AIModel/AIBallistic.cxx | 4 ++-- src/ATC/atc_mgr.cxx | 2 ++ utils/fgai/HLAAircraft.cxx | 2 +- utils/fgai/HLABaloon.cxx | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/AIModel/AIBallistic.cxx b/src/AIModel/AIBallistic.cxx index 34d20364e..77df2636a 100644 --- a/src/AIModel/AIBallistic.cxx +++ b/src/AIModel/AIBallistic.cxx @@ -49,15 +49,15 @@ _azimuth(0.0), _elevation(0.0), _rotation(0.0), hs(0), +_elapsed_time(0), _az_random_error(0.0), _el_random_error(0.0), -_elapsed_time(0), _aero_stabilised(false), _drag_area(0.007), +_buoyancy(0), _cd(0.029), _init_cd(0.029), _cd_randomness(0.0), -_buoyancy(0), _life_timer(0.0), _wind(true), _mass(0), diff --git a/src/ATC/atc_mgr.cxx b/src/ATC/atc_mgr.cxx index 1b3a4dc27..b51bbd46d 100644 --- a/src/ATC/atc_mgr.cxx +++ b/src/ATC/atc_mgr.cxx @@ -209,6 +209,7 @@ void FGATCManager::update ( double time ) { //cerr << "Shutting down the atc_mgr" << endl; return; } +#if 0 // Test code: Print how far we're progressing along the taxi route. //std::cerr << "Size of waypoint cue " << size << " "; for (int i = 0; i < size; i++) { @@ -220,6 +221,7 @@ void FGATCManager::update ( double time ) { //} } //std::cerr << "[done ] " << std::endl; +#endif } if (fp) { //cerr << "Currently at leg : " << fp->getLeg() << endl; diff --git a/utils/fgai/HLAAircraft.cxx b/utils/fgai/HLAAircraft.cxx index ff6b9ec3c..c218675ed 100644 --- a/utils/fgai/HLAAircraft.cxx +++ b/utils/fgai/HLAAircraft.cxx @@ -40,7 +40,7 @@ HLAAircraft::createAttributeDataElements() HLAAirVehicle::createAttributeDataElements(); assert(dynamic_cast(getObjectClass().get())); - HLAAircraftClass& objectClass = static_cast(*getObjectClass()); + //HLAAircraftClass& objectClass = static_cast(*getObjectClass()); // setAttributeDataElement(objectClass.getModelPathIndex(), _modelPath.getDataElement()); // setAttributeDataElement(objectClass.getModelLiveryIndex(), _modelLivery.getDataElement()); diff --git a/utils/fgai/HLABaloon.cxx b/utils/fgai/HLABaloon.cxx index 698c8e808..ce3c4b350 100644 --- a/utils/fgai/HLABaloon.cxx +++ b/utils/fgai/HLABaloon.cxx @@ -40,7 +40,7 @@ HLABaloon::createAttributeDataElements() HLAAirVehicle::createAttributeDataElements(); assert(dynamic_cast(getObjectClass().get())); - HLABaloonClass& objectClass = static_cast(*getObjectClass()); + //HLABaloonClass& objectClass = static_cast(*getObjectClass()); // setAttributeDataElement(objectClass.getModelPathIndex(), _modelPath.getDataElement()); // setAttributeDataElement(objectClass.getModelLiveryIndex(), _modelLivery.getDataElement()); -- 2.39.5