From: fredb Date: Sat, 16 May 2009 09:40:48 +0000 (+0000) Subject: Remove few warnings X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19eab15f8e653cd8f1835f9a85de5c6c8c7306c7;p=flightgear.git Remove few warnings --- diff --git a/src/AIModel/AIFlightPlan.cxx b/src/AIModel/AIFlightPlan.cxx index 41c7966be..d24a83127 100644 --- a/src/AIModel/AIFlightPlan.cxx +++ b/src/AIModel/AIFlightPlan.cxx @@ -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 diff --git a/src/ATC/trafficcontrol.cxx b/src/ATC/trafficcontrol.cxx index 0d08fb52a..3ddfbc4ed 100644 --- a/src/ATC/trafficcontrol.cxx +++ b/src/ATC/trafficcontrol.cxx @@ -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;