purge gcc warnings:
- xxx will be initialized after yyy - age_factor may be used uninitialized
This commit is contained in:
parent
582a95f0cb
commit
149c6acc85
1 changed files with 4 additions and 4 deletions
|
@ -75,14 +75,14 @@ static const char *DEFAULT_FONT = "typewriter.txf";
|
||||||
wxRadarBg::wxRadarBg(SGPropertyNode *node) :
|
wxRadarBg::wxRadarBg(SGPropertyNode *node) :
|
||||||
_name(node->getStringValue("name", "radar")),
|
_name(node->getStringValue("name", "radar")),
|
||||||
_num(node->getIntValue("number", 0)),
|
_num(node->getIntValue("number", 0)),
|
||||||
_interval(node->getDoubleValue("update-interval-sec", 1.0)),
|
|
||||||
_time(0.0),
|
_time(0.0),
|
||||||
|
_interval(node->getDoubleValue("update-interval-sec", 1.0)),
|
||||||
_sim_init_done(false),
|
_sim_init_done(false),
|
||||||
_odg(0),
|
_odg(0),
|
||||||
_last_switchKnob("off"),
|
_last_switchKnob("off"),
|
||||||
|
_antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0)),
|
||||||
_resultTexture(0),
|
_resultTexture(0),
|
||||||
_wxEcho(0),
|
_wxEcho(0)
|
||||||
_antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0))
|
|
||||||
{
|
{
|
||||||
string branch;
|
string branch;
|
||||||
branch = "/instrumentation/" + _name;
|
branch = "/instrumentation/" + _name;
|
||||||
|
@ -598,7 +598,7 @@ void
|
||||||
wxRadarBg::update_aircraft()
|
wxRadarBg::update_aircraft()
|
||||||
{
|
{
|
||||||
double diff;
|
double diff;
|
||||||
double age_factor;
|
double age_factor = 1.0;
|
||||||
double test_rng;
|
double test_rng;
|
||||||
double test_brg;
|
double test_brg;
|
||||||
double range;
|
double range;
|
||||||
|
|
Loading…
Add table
Reference in a new issue