]> git.mxchange.org Git - flightgear.git/commitdiff
Fix some compiler warnings
authorehofman <ehofman>
Thu, 16 Oct 2003 12:53:10 +0000 (12:53 +0000)
committerehofman <ehofman>
Thu, 16 Oct 2003 12:53:10 +0000 (12:53 +0000)
src/Environment/environment.cxx
src/Environment/environment_ctrl.cxx

index bfaed13a538aa5d12053195cb96c0b21b4859675..e6eb0b8a6648d95b4ee87418ec3259f01e1807e1 100644 (file)
@@ -121,13 +121,13 @@ FGEnvironment::FGEnvironment()
     dewpoint_degc(5),
     pressure_sea_level_inhg(29.92),
     pressure_inhg(29.92),
+    turbulence_magnitude_norm(0),
+    turbulence_rate_hz(1),
     wind_from_heading_deg(0),
     wind_speed_kt(0),
     wind_from_north_fps(0),
     wind_from_east_fps(0),
-    wind_from_down_fps(0),
-    turbulence_magnitude_norm(0),
-    turbulence_rate_hz(1)
+    wind_from_down_fps(0)
 {
   _setup_tables();
   _recalc_density();
index 1c817277b8d86e15d754dca8a9ca14018bffde38..eb2761b12a58099081fbb36401c2e866c4004583 100644 (file)
@@ -172,7 +172,7 @@ FGInterpolateEnvironmentCtrl::FGInterpolateEnvironmentCtrl ()
 
 FGInterpolateEnvironmentCtrl::~FGInterpolateEnvironmentCtrl ()
 {
-    int i;
+    unsigned int i;
     for (i = 0; i < _boundary_table.size(); i++)
         delete _boundary_table[i];
     for (i = 0; i < _aloft_table.size(); i++)
@@ -193,7 +193,7 @@ FGInterpolateEnvironmentCtrl::init ()
 void
 FGInterpolateEnvironmentCtrl::reinit ()
 {
-    int i;
+    unsigned int i;
     for (i = 0; i < _boundary_table.size(); i++)
         delete _boundary_table[i];
     for (i = 0; i < _aloft_table.size(); i++)
@@ -233,7 +233,7 @@ FGInterpolateEnvironmentCtrl::update (double delta_time_sec)
     double boundary_transition =
         fgGetDouble("/environment/config/boundary-transition-ft", 500);
 
-    double ground_elevation_ft = altitude_ft - altitude_agl_ft;
+    // double ground_elevation_ft = altitude_ft - altitude_agl_ft;
 
     int length = _boundary_table.size();