]> git.mxchange.org Git - flightgear.git/commitdiff
clear two gcc warnings
authorTorsten Dreyer <Torsten@t3r.de>
Fri, 25 Feb 2011 19:46:18 +0000 (20:46 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Fri, 25 Feb 2011 19:46:18 +0000 (20:46 +0100)
src/AIModel/AIWingman.cxx
src/GUI/WaypointList.cxx

index be053c447884bee615c9ebe5e5ceb8de0512f4ec..b64446dbe4e65e27365e36fb50028b9b82658f47 100644 (file)
@@ -428,7 +428,7 @@ void FGAIWingman::Join(double dt) {
     //double approx_angle = atan2(daltM, range);
     double frm_spd = 50; // formation speed
     double join_rnge = 1000.0;
-    double recip_parent_hdg = calcRecipBearingDeg(parent_hdg);
+//    double recip_parent_hdg = calcRecipBearingDeg(parent_hdg);
     int turn = SGMiscd::sign(rel_brg);// turn direction: 1 = right, -1 = left
 
     if (range <= join_rnge && (hdg >= hdg_l_lim || hdg <= hdg_r_lim)){
index ded3d46ecfc1c3c2db2e193587222f8b02c907d9..4f9d68b13af2cecd50797d313752d6b4d1147f90 100644 (file)
@@ -83,7 +83,7 @@ public:
       --destIndex;
     }
     
-    int currentWpIndex = currentWaypoint();
+    unsigned int currentWpIndex = currentWaypoint();
     WayptRef w(_rm->removeWayptAtIndex(srcIndex));
     SG_LOG(SG_GENERAL, SG_INFO, "wpt:" << w->ident());
     _rm->insertWayptAtIndex(w, destIndex);