]> git.mxchange.org Git - flightgear.git/commitdiff
More warnings, similar issues.
authorandy <andy>
Tue, 8 Aug 2006 18:32:17 +0000 (18:32 +0000)
committerandy <andy>
Tue, 8 Aug 2006 18:32:17 +0000 (18:32 +0000)
src/Scripting/NasalSys.hxx
src/Scripting/nasal-props.cxx

index e9cb6136c5792ce3f0c7df7b27d44f933e6941d5..cd26cc067ea45c68a347de04207727df184072a8 100644 (file)
@@ -70,6 +70,7 @@ private:
     //
     struct NasalTimer {
         virtual void timerExpired();
+        virtual ~NasalTimer() {}
         naRef handler;
         int gcKey;
         FGNasalSys* nasal;
index aba10f6a598565480e6f043acde206163a61b85d..d040d3189b3a91cb9314ff5d66dbda981ddb52de 100644 (file)
@@ -97,8 +97,9 @@ static naRef f_getValue(naContext c, naRef me, int argc, naRef* args)
     case SGPropertyNode::STRING:
     case SGPropertyNode::UNSPECIFIED:
         return NASTR((*node)->getStringValue());
+    default:
+        return naNil();
     }
-    return naNil();
 }
 
 static naRef f_setValue(naContext c, naRef me, int argc, naRef* args)