]> git.mxchange.org Git - flightgear.git/commitdiff
Fix missing return statement and unused local variable
authorfredb <fredb>
Sat, 2 Sep 2006 08:10:13 +0000 (08:10 +0000)
committerfredb <fredb>
Sat, 2 Sep 2006 08:10:13 +0000 (08:10 +0000)
src/Airports/groundnetwork.cxx

index 835fbb52bf5675c67e4f993dcc16dc73314d747c..a6d997eda308b29735d3a83263a84933b9a233c8 100644 (file)
@@ -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();
 }