]> git.mxchange.org Git - flightgear.git/commitdiff
Suppress warnings
authorfredb <fredb>
Sun, 14 Jun 2009 15:24:30 +0000 (15:24 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 15 Jun 2009 08:29:45 +0000 (10:29 +0200)
src/AIModel/AIAircraft.cxx
src/MultiPlayer/multiplaymgr.cxx

index 4bc5cc3c0de57bcad1fcee3ca09a628ad12c5bab..7da692069455eed8f9a836b1db228f29fa1bbf2d 100644 (file)
@@ -277,8 +277,8 @@ void FGAIAircraft::ProcessFlightPlan( double dt, time_t now ) {
         }
 
         //TODO let the fp handle this (loading of next leg)
-        fp->IncrementWaypoint((bool) trafficRef);
-        if (!(fp->getNextWaypoint()) && trafficRef)
+        fp->IncrementWaypoint( trafficRef != 0 );
+        if (!(fp->getNextWaypoint()) && trafficRef != 0)
             if (!loadNextLeg()) {
                 setDie(true);
                 return;
index ca5a1753f79db8eff7561f5e7bea3be235406717..4dbc3f3a74474bc920b0da5b98c09da9413a39f8 100644 (file)
@@ -907,7 +907,7 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg,
               length = MAX_TEXT_SIZE;
             pData->string_value = new char[length + 1];
             //cout << " String: ";
-            for (int i = 0; i < length; i++)
+            for (unsigned i = 0; i < length; i++)
               {
                 pData->string_value[i] = (char) XDR_decode_int8(*xdr);
                 xdr++;