]> git.mxchange.org Git - flightgear.git/commitdiff
warning fixes
authortorsten <torsten>
Fri, 21 Aug 2009 14:33:30 +0000 (14:33 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:43:09 +0000 (21:43 +0200)
src/Cockpit/hud.hxx
src/Cockpit/hud_rwy.cxx

index 0ce27ec3003883ce621793cc2cb23a435f16090b..3774767b668cb65a2446ebaf7863a5ac87c8bb48 100644 (file)
@@ -274,7 +274,7 @@ public:
 
     void Draw(fntRenderer *fnt) {
         if (digit) {
-            int c=0,i=0;
+            int c=0;
             
             int p=4;
 
index f73718b0781baa5a6238509b85c5c7a304d81eb8..d4b56356b2ccf543408ef443d27fa632c9b929d9 100644 (file)
@@ -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();