From 97c214e4fc8020a089923d5489f304b48a4f7ea8 Mon Sep 17 00:00:00 2001 From: fredb Date: Sun, 14 Jun 2009 15:24:30 +0000 Subject: [PATCH] Suppress warnings --- src/AIModel/AIAircraft.cxx | 4 ++-- src/MultiPlayer/multiplaymgr.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AIModel/AIAircraft.cxx b/src/AIModel/AIAircraft.cxx index 4bc5cc3c0..7da692069 100644 --- a/src/AIModel/AIAircraft.cxx +++ b/src/AIModel/AIAircraft.cxx @@ -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; diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index ca5a1753f..4dbc3f3a7 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -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++;