diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index 2a1abff84..836df56d5 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -133,14 +133,14 @@ bool FGAIBase::init() { try { model = load3DModel( globals->get_fg_root(), ai_path.str(), props, globals->get_sim_time_sec() ); - } catch (const sg_exception &e) { + } catch (const sg_exception &) { model = NULL; } if (!model) { try { model = load3DModel( globals->get_fg_root(), model_path, props, globals->get_sim_time_sec() ); - } catch (const sg_exception &e) { + } catch (const sg_exception &) { model = NULL; } } diff --git a/src/Traffic/Schedule.cxx b/src/Traffic/Schedule.cxx index 039705ad2..9aa64dc12 100644 --- a/src/Traffic/Schedule.cxx +++ b/src/Traffic/Schedule.cxx @@ -374,7 +374,7 @@ bool FGAISchedule::update(time_t now) { string flightPlanName = dep->getId() + string("-") + arr->getId() + string(".xml"); - int alt; + //int alt; //if ((i->getDepartureTime() < now)) //{ // alt = i->getCruiseAlt() *100; @@ -461,8 +461,8 @@ void FGAISchedule::next() double FGAISchedule::getSpeed() { - double courseToUser, courseToDest; - double distanceToUser, distanceToDest; + double courseToDest; + double distanceToDest; double speed, remainingTimeEnroute; FGAirport *dep, *arr;