From: torsten Date: Sat, 2 Jan 2010 17:04:28 +0000 (+0000) Subject: purge gcc warnings: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=149c6acc85b61c9561e5252589cafcd3e6074731;p=flightgear.git purge gcc warnings: - xxx will be initialized after yyy - age_factor may be used uninitialized --- diff --git a/src/Instrumentation/wxradar.cxx b/src/Instrumentation/wxradar.cxx index 7681cb4fe..8a27057fe 100644 --- a/src/Instrumentation/wxradar.cxx +++ b/src/Instrumentation/wxradar.cxx @@ -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;