]> git.mxchange.org Git - flightgear.git/commitdiff
Remove few warnings
authorfredb <fredb>
Sat, 16 May 2009 09:40:48 +0000 (09:40 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 18 May 2009 10:24:17 +0000 (12:24 +0200)
src/AIModel/AIFlightPlan.cxx
src/ATC/trafficcontrol.cxx

index 41c7966be01d95ed37bc52eaac9009a27a442724..d24a83127954320d50ec60a1bf66fbd87f0bd468 100644 (file)
@@ -66,7 +66,7 @@ FGAIFlightPlan::FGAIFlightPlan(const string& filename)
 
   try {
       readProperties(path.str(), &root);
-  } catch (const sg_exception &e) {
+  } catch (const sg_exception &) {
       SG_LOG(SG_GENERAL, SG_ALERT,
        "Error reading AI flight plan: " << path.str());
        // cout << path.str() << endl;
@@ -177,7 +177,7 @@ FGAIFlightPlan::FGAIFlightPlan(FGAIAircraft *ac,
            waypoints.push_back(wpt);
          }
        }
-      catch (const sg_exception &e) {
+      catch (const sg_exception &) {
        SG_LOG(SG_GENERAL, SG_WARN,
               "Error reading AI flight plan: ");
        cerr << "Errno = " << errno << endl;
@@ -468,7 +468,7 @@ void FGAIFlightPlan::deleteTaxiRoute()
 
 
 int FGAIFlightPlan::getRouteIndex(int i) {
-  if ((i > 0) && (i < waypoints.size())) {
+  if ((i > 0) && (i < (int)waypoints.size())) {
     return waypoints[i]->routeIndex;
   }
   else
index 0d08fb52aa984c9feb332d7f2bda2c91e43e85f9..3ddfbc4ed3262f13b03c82d4f0bdc11cb62371e4 100644 (file)
@@ -379,7 +379,6 @@ void FGATCController::transmit(FGTrafficRecord *rec, AtcMsgId msgId, AtcMsgDir m
          }
     string text;
     string taxiFreqStr;
-    char buffer[7];
     double heading = 0;
     string activeRunway;
     string fltType;