]> git.mxchange.org Git - flightgear.git/commitdiff
eliminate gcc warnings
authortorsten <torsten>
Sat, 2 Jan 2010 20:28:38 +0000 (20:28 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 3 Jan 2010 21:40:04 +0000 (22:40 +0100)
src/ATCDCL/AILocalTraffic.cxx
src/ATCDCL/ATCutils.cxx

index 6c1b77d8f5da776381435328fe7c13074fdfcacc..b0b1c6e220156519a5f50b5ee504a8dceb6becfd 100644 (file)
@@ -164,8 +164,8 @@ void FGAILocalTraffic::GetRwyDetails(const string& id) {
   
        // move to the +l end/center of the runway
                //cout << "Runway center is at " << runway._lon << ", " << runway._lat << '\n';
-       double tshlon, tshlat, tshr;
-               double tolon, tolat, tor;
+       double tshlon = 0.0, tshlat = 0.0, tshr;
+               double tolon = 0.0, tolat = 0.0, tor;
                rwy.length = runway->lengthM();
                rwy.width = runway->widthM();
        geo_direct_wgs_84 ( aptElev, runway->latitude(), runway->longitude(), other_way, 
index fe484f25674ca285017f8ef05a0cba989207b755..02485a54963aee148bf8bf3385987a253b20711d 100644 (file)
@@ -86,7 +86,7 @@ string ConvertNumToSpokenDigits(const int& n) {
 // Anything else is not guaranteed to be handled correctly!
 string ConvertRwyNumToSpokenString(const string &rwy) {
   string rslt;
-  for (int ii = 0; ii < rwy.length(); ii++){
+  for (size_t ii = 0; ii < rwy.length(); ii++){
     if (rslt.length()) rslt += " ";
     string ch = rwy.substr(ii,1);
     if (isdigit(ch[0])) rslt += ConvertNumToSpokenDigits(atoi(ch.c_str()));