From f938a23d7c96fe704930d323dac69e81c9f46f36 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Fri, 25 Feb 2011 20:46:18 +0100 Subject: [PATCH] clear two gcc warnings --- src/AIModel/AIWingman.cxx | 2 +- src/GUI/WaypointList.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AIModel/AIWingman.cxx b/src/AIModel/AIWingman.cxx index be053c447..b64446dbe 100644 --- a/src/AIModel/AIWingman.cxx +++ b/src/AIModel/AIWingman.cxx @@ -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)){ diff --git a/src/GUI/WaypointList.cxx b/src/GUI/WaypointList.cxx index ded3d46ec..4f9d68b13 100644 --- a/src/GUI/WaypointList.cxx +++ b/src/GUI/WaypointList.cxx @@ -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);