Fix some more unitialized value warnings.
This commit is contained in:
parent
1114c49165
commit
721566a6e7
3 changed files with 4 additions and 2 deletions
|
@ -65,6 +65,8 @@ enum plane_type {
|
||||||
// PlaneRec - a structure holding ATC-centric details of planes under control
|
// PlaneRec - a structure holding ATC-centric details of planes under control
|
||||||
// This might move or change eventually
|
// This might move or change eventually
|
||||||
struct PlaneRec {
|
struct PlaneRec {
|
||||||
|
PlaneRec() : type(UNKNOWN), squawkcode(0) {}
|
||||||
|
PlaneRec(const std::string& s) : type(UNKNOWN), callsign(s), squawkcode(0) {}
|
||||||
plane_type type;
|
plane_type type;
|
||||||
std::string callsign;
|
std::string callsign;
|
||||||
int squawkcode;
|
int squawkcode;
|
||||||
|
|
|
@ -63,10 +63,9 @@ using boost::ref;
|
||||||
using boost::tie;
|
using boost::tie;
|
||||||
|
|
||||||
FGATIS::FGATIS() :
|
FGATIS::FGATIS() :
|
||||||
transmission(""),
|
|
||||||
trans_ident(""),
|
|
||||||
old_volume(0),
|
old_volume(0),
|
||||||
atis_failed(false),
|
atis_failed(false),
|
||||||
|
msg_OK(0),
|
||||||
attention(0),
|
attention(0),
|
||||||
_prev_display(0),
|
_prev_display(0),
|
||||||
refname("atis")
|
refname("atis")
|
||||||
|
|
|
@ -219,6 +219,7 @@ GPS::GPS ( SGPropertyNode *node) :
|
||||||
_mode("init"),
|
_mode("init"),
|
||||||
_name(node->getStringValue("name", "gps")),
|
_name(node->getStringValue("name", "gps")),
|
||||||
_num(node->getIntValue("number", 0)),
|
_num(node->getIntValue("number", 0)),
|
||||||
|
_searchResultsCached(false),
|
||||||
_computeTurnData(false),
|
_computeTurnData(false),
|
||||||
_anticipateTurn(false),
|
_anticipateTurn(false),
|
||||||
_inTurn(false)
|
_inTurn(false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue