]> git.mxchange.org Git - flightgear.git/commitdiff
purge gcc warnings:
authortorsten <torsten>
Sat, 2 Jan 2010 17:04:28 +0000 (17:04 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 3 Jan 2010 09:35:33 +0000 (10:35 +0100)
- xxx will be initialized after yyy
- age_factor may be used uninitialized

src/Instrumentation/wxradar.cxx

index 7681cb4fe5964e5134941c87dd5ddedbe31231d5..8a27057fed894c78446c06fcce9c3ab7602b9380 100644 (file)
@@ -75,14 +75,14 @@ static const char *DEFAULT_FONT = "typewriter.txf";
 wxRadarBg::wxRadarBg(SGPropertyNode *node) :
     _name(node->getStringValue("name", "radar")),
     _num(node->getIntValue("number", 0)),
-    _interval(node->getDoubleValue("update-interval-sec", 1.0)),
     _time(0.0),
+    _interval(node->getDoubleValue("update-interval-sec", 1.0)),
     _sim_init_done(false),
     _odg(0),
     _last_switchKnob("off"),
+    _antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0)),
     _resultTexture(0),
-    _wxEcho(0),
-    _antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0))
+    _wxEcho(0)
 {
     string branch;
     branch = "/instrumentation/" + _name;
@@ -598,7 +598,7 @@ void
 wxRadarBg::update_aircraft()
 {
     double diff;
-    double age_factor;
+    double age_factor = 1.0;
     double test_rng;
     double test_brg;
     double range;