eliminate gcc warnings
This commit is contained in:
parent
c0b64dccdb
commit
1290c25a38
2 changed files with 3 additions and 3 deletions
|
@ -164,8 +164,8 @@ void FGAILocalTraffic::GetRwyDetails(const string& id) {
|
||||||
|
|
||||||
// move to the +l end/center of the runway
|
// move to the +l end/center of the runway
|
||||||
//cout << "Runway center is at " << runway._lon << ", " << runway._lat << '\n';
|
//cout << "Runway center is at " << runway._lon << ", " << runway._lat << '\n';
|
||||||
double tshlon, tshlat, tshr;
|
double tshlon = 0.0, tshlat = 0.0, tshr;
|
||||||
double tolon, tolat, tor;
|
double tolon = 0.0, tolat = 0.0, tor;
|
||||||
rwy.length = runway->lengthM();
|
rwy.length = runway->lengthM();
|
||||||
rwy.width = runway->widthM();
|
rwy.width = runway->widthM();
|
||||||
geo_direct_wgs_84 ( aptElev, runway->latitude(), runway->longitude(), other_way,
|
geo_direct_wgs_84 ( aptElev, runway->latitude(), runway->longitude(), other_way,
|
||||||
|
|
|
@ -86,7 +86,7 @@ string ConvertNumToSpokenDigits(const int& n) {
|
||||||
// Anything else is not guaranteed to be handled correctly!
|
// Anything else is not guaranteed to be handled correctly!
|
||||||
string ConvertRwyNumToSpokenString(const string &rwy) {
|
string ConvertRwyNumToSpokenString(const string &rwy) {
|
||||||
string rslt;
|
string rslt;
|
||||||
for (int ii = 0; ii < rwy.length(); ii++){
|
for (size_t ii = 0; ii < rwy.length(); ii++){
|
||||||
if (rslt.length()) rslt += " ";
|
if (rslt.length()) rslt += " ";
|
||||||
string ch = rwy.substr(ii,1);
|
string ch = rwy.substr(ii,1);
|
||||||
if (isdigit(ch[0])) rslt += ConvertNumToSpokenDigits(atoi(ch.c_str()));
|
if (isdigit(ch[0])) rslt += ConvertNumToSpokenDigits(atoi(ch.c_str()));
|
||||||
|
|
Loading…
Reference in a new issue