From 789779d532410e0f3b8abbdc4866f78f1ab73db6 Mon Sep 17 00:00:00 2001 From: fredb Date: Sat, 2 Sep 2006 08:10:13 +0000 Subject: [PATCH] Fix missing return statement and unused local variable --- src/Airports/groundnetwork.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Airports/groundnetwork.cxx b/src/Airports/groundnetwork.cxx index 835fbb52b..a6d997eda 100644 --- a/src/Airports/groundnetwork.cxx +++ b/src/Airports/groundnetwork.cxx @@ -323,7 +323,7 @@ void FGGroundNetwork::init() int FGGroundNetwork::findNearestNode(double lat, double lon) { double minDist = HUGE_VAL; - double course, dist; + double dist; int index; SGWayPoint first (lon, lat, @@ -737,6 +737,7 @@ bool FGGroundNetwork::hasInstruction(int id) } else { return i->hasInstruction(); } + return false; } FGATCInstruction FGGroundNetwork::getInstruction(int id) @@ -754,6 +755,7 @@ FGATCInstruction FGGroundNetwork::getInstruction(int id) } else { return i->getInstruction(); } + return FGATCInstruction(); } -- 2.39.5