1
0
Fork 0

Remove few warnings

This commit is contained in:
fredb 2009-05-16 09:40:48 +00:00 committed by Tim Moore
parent 5fad5ce1c2
commit 19eab15f8e
2 changed files with 3 additions and 4 deletions

View 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

View 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;