]> git.mxchange.org Git - flightgear.git/commitdiff
Silence some warnings
authorTorsten Dreyer <torsten@t3r.de>
Fri, 29 May 2015 08:27:25 +0000 (10:27 +0200)
committerTorsten Dreyer <torsten@t3r.de>
Fri, 29 May 2015 08:27:25 +0000 (10:27 +0200)
AIBallistic: wrong order of member initialization
Other: unused variables

src/AIModel/AIBallistic.cxx
src/ATC/atc_mgr.cxx
utils/fgai/HLAAircraft.cxx
utils/fgai/HLABaloon.cxx

index 34d20364e9de1132965b4b1ea2e0aaa58dc293e2..77df2636a3c849366d576dfbda0d3c77f55b005f 100644 (file)
@@ -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),
index 1b3a4dc27b8b5451d3a28edc54367472bb0f9c92..b51bbd46d84c1191e1590d0c24062a23f8d32f20 100644 (file)
@@ -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;
index ff6b9ec3cdbb535c3e2e819b2d782a7b46833bb1..c218675edee684866160fe0aa2c9425b2d3de726 100644 (file)
@@ -40,7 +40,7 @@ HLAAircraft::createAttributeDataElements()
     HLAAirVehicle::createAttributeDataElements();
 
     assert(dynamic_cast<HLAAircraftClass*>(getObjectClass().get()));
-    HLAAircraftClass& objectClass = static_cast<HLAAircraftClass&>(*getObjectClass());
+    //HLAAircraftClass& objectClass = static_cast<HLAAircraftClass&>(*getObjectClass());
 
     // setAttributeDataElement(objectClass.getModelPathIndex(), _modelPath.getDataElement());
     // setAttributeDataElement(objectClass.getModelLiveryIndex(), _modelLivery.getDataElement());
index 698c8e80829cbe80a949b9e53a82c89e694d4d7d..ce3c4b350eb8438f9c4d4a72cbcbfa4dadcad31d 100644 (file)
@@ -40,7 +40,7 @@ HLABaloon::createAttributeDataElements()
     HLAAirVehicle::createAttributeDataElements();
 
     assert(dynamic_cast<HLABaloonClass*>(getObjectClass().get()));
-    HLABaloonClass& objectClass = static_cast<HLABaloonClass&>(*getObjectClass());
+    //HLABaloonClass& objectClass = static_cast<HLABaloonClass&>(*getObjectClass());
 
     // setAttributeDataElement(objectClass.getModelPathIndex(), _modelPath.getDataElement());
     // setAttributeDataElement(objectClass.getModelLiveryIndex(), _modelLivery.getDataElement());