From e294ab7b395b048528bb7e8a852ca36e5c14f17a Mon Sep 17 00:00:00 2001 From: torsten Date: Fri, 21 Aug 2009 14:33:30 +0000 Subject: [PATCH] warning fixes --- src/Cockpit/hud.hxx | 2 +- src/Cockpit/hud_rwy.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cockpit/hud.hxx b/src/Cockpit/hud.hxx index 0ce27ec30..3774767b6 100644 --- a/src/Cockpit/hud.hxx +++ b/src/Cockpit/hud.hxx @@ -274,7 +274,7 @@ public: void Draw(fntRenderer *fnt) { if (digit) { - int c=0,i=0; + int c=0; int p=4; diff --git a/src/Cockpit/hud_rwy.cxx b/src/Cockpit/hud_rwy.cxx index f73718b07..d4b56356b 100644 --- a/src/Cockpit/hud_rwy.cxx +++ b/src/Cockpit/hud_rwy.cxx @@ -187,7 +187,7 @@ void runway_instr::get_rwy_points(sgdVec3 *points3d) double alt = current_aircraft.fdm_state->get_Runway_altitude() * SG_FEET_TO_METER; double length = runway->lengthM() * 0.5; double width = runway->widthM() * 0.5; - double frontLat, frontLon, backLat, backLon,az, tempLat, tempLon; + double frontLat = 0.0, frontLon = 0.0, backLat = 0.0, backLon = 0.0, az = 0.0, tempLat = 0.0, tempLon = 0.0; double runwayLon = runway->geod().getLongitudeDeg(), runwayLat = runway->geod().getLatitudeDeg(); double heading = runway->headingDeg();