From: fredb Date: Sat, 2 Sep 2006 08:10:13 +0000 (+0000) Subject: Fix missing return statement and unused local variable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=789779d532410e0f3b8abbdc4866f78f1ab73db6;p=flightgear.git Fix missing return statement and unused local variable --- 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(); }