]> git.mxchange.org Git - flightgear.git/commitdiff
warning fixes
authortorsten <torsten>
Sun, 23 Aug 2009 18:13:32 +0000 (18:13 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:43:10 +0000 (21:43 +0200)
src/Instrumentation/dclgps.cxx
src/Instrumentation/navradio.cxx
src/Instrumentation/rad_alt.cxx
src/Instrumentation/wxradar.cxx

index f3bbfc2a6479bc746e0f7b1575dfd10db5c5ba56..a20189cd973a54f05e4a41ab3ab34cb3accabcab 100644 (file)
@@ -1027,6 +1027,9 @@ void DCLGPS::CreateFlightPlan(GPSFlightPlan* fp, vector<string> ids, vector<GPSW
                case GPS_WP_USR:
                        // TODO
                        break;
+               case GPS_WP_VIRT:
+                       // TODO
+                       break;
                }
        }
 }
index ceeefc8c599ab18ec53014d6edc70a9f2a8f3495..46ef1a3a5ee5a913d65ff1687c9cabc619af81b5 100644 (file)
@@ -830,7 +830,7 @@ void FGNavRadio::search()
 
                 // derive GS baseline (perpendicular to the runay
                 // along the ground)
-                double tlon, tlat, taz;
+                double tlon = 0.0, tlat = 0.0, taz = 0.0;
                 geo_direct_wgs_84 ( 0.0, gs_lat, gs_lon,
                                     target_radial + 90,
                                     100.0, &tlat, &tlon, &taz );
index 4dcf9d818403ef93f4ce0973351c864019644764..e26c24763415342e037cf21ca8ed225be71719ee 100644 (file)
@@ -136,8 +136,8 @@ radAlt::getDistanceAntennaToHit(SGVec3d nearestHit) const
 void
 radAlt::update_altitude()
 {
-    int mode           = _radar_mode_control_node->getIntValue();
-    double tilt        = _Instrument->getDoubleValue("tilt", -85);
+//    int mode           = _radar_mode_control_node->getIntValue();
+//    double tilt        = _Instrument->getDoubleValue("tilt", -85);
     double el_limit    = _Instrument->getDoubleValue("elev-limit", 15);
     double el_step     = _Instrument->getDoubleValue("elev-step-deg", 15);
     double az_limit    = _Instrument->getDoubleValue("az-limit-deg", 15);
index 968db833a4f32ee59ccf396a004075c3118a354a..6c2187ae7136869ba210c201aee796b8a9ee679c 100644 (file)
@@ -463,7 +463,7 @@ wxRadarBg::update_weather()
 
     // pretend we have a scan angle bigger then the FOV
     // TODO:check real fov, enlarge if < nn, and do clipping if > mm
-    const float fovFactor = 1.45f;
+//    const float fovFactor = 1.45f;
     _Instrument->setStringValue("status", modeButton.c_str());
 
     list_of_SGWxRadarEcho *radarEcho = &_radarEchoBuffer;