]> git.mxchange.org Git - flightgear.git/commitdiff
Fix some compiler warnings.
authorThorstenB <brehmt@gmail.com>
Tue, 3 Apr 2012 20:24:00 +0000 (22:24 +0200)
committerThorstenB <brehmt@gmail.com>
Thu, 5 Apr 2012 19:02:09 +0000 (21:02 +0200)
Also removes "itm.cpp" from CMake to avoid code duplication/warnings, since
this the file is already included by radio.cxx.

src/ATC/trafficcontrol.cxx
src/FDM/ExternalPipe/ExternalPipe.cxx
src/Radio/CMakeLists.txt

index fb15674cdc92eb2a9d4b3faaf89abfe20427a7d8..1ef59c9b7020f58912d467adeebaf442613d60df 100644 (file)
@@ -1328,7 +1328,7 @@ void FGStartupController::render(bool visible)
         group = new osg::Group;
         FGScenery * local_scenery = globals->get_scenery();
         //double elevation_meters = 0.0;
-        double elevation_feet = 0.0;
+        //double elevation_feet = 0.0;
 
 
         //for ( FGTaxiSegmentVectorIterator i = segments.begin(); i != segments.end(); i++) {
@@ -1370,7 +1370,7 @@ void FGStartupController::render(bool visible)
                         SGGeod center2 = end;
                         center2.setElevationM(SG_MAX_ELEVATION_M);
                         if (local_scenery->get_elevation_m( center2, elevationEnd, NULL )) {
-                            elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5;
+                            //elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5;
                             //elevation_meters += 0.5;
                         }
                         else {
@@ -1433,7 +1433,7 @@ void FGStartupController::render(bool visible)
                             SGGeod center2 = segment->getStart()->getGeod();
                             center2.setElevationM(SG_MAX_ELEVATION_M);
                             if (local_scenery->get_elevation_m( center2, elevationStart, NULL )) {
-                                elevation_feet = elevationStart * SG_METER_TO_FEET + 0.5;
+                                //elevation_feet = elevationStart * SG_METER_TO_FEET + 0.5;
                                 //elevation_meters += 0.5;
                             }
                             else {
@@ -1445,7 +1445,7 @@ void FGStartupController::render(bool visible)
                             SGGeod center2 = segment->getEnd()->getGeod();
                             center2.setElevationM(SG_MAX_ELEVATION_M);
                             if (local_scenery->get_elevation_m( center2, elevationEnd, NULL )) {
-                                elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5;
+                                //elevation_feet = elevationEnd * SG_METER_TO_FEET + 0.5;
                                 //elevation_meters += 0.5;
                             }
                             else {
index abe6569601a4a98b81d943647a23eeff558c398d..0a7377a4df317bce9cc2abf4b495efc1c4cb9eae 100644 (file)
@@ -287,6 +287,8 @@ void FGExternalPipe::init_binary() {
     fflush( pd1 );
 
     SG_LOG( SG_IO, SG_ALERT, "Remote FDM init() finished." );
+
+    (void) result; // ignore result
 }
 
 
@@ -350,6 +352,8 @@ void FGExternalPipe::init_property() {
     fflush( pd1 );
 
     SG_LOG( SG_IO, SG_ALERT, "Remote FDM init() finished." );
+
+    (void) result; // ignore result
 }
 
 
@@ -573,6 +577,7 @@ void FGExternalPipe::update_property( double dt ) {
         }
     }
 
+    (void) result; // ignore result
 #endif
 }
 
index 72b1705f51c488f85913278779d41712ed02fab1..a1221aef7ac12675ea2b966fc1b26a122826c155 100644 (file)
@@ -3,7 +3,6 @@ include(FlightGearComponent)
 set(SOURCES
        antenna.cxx
        radio.cxx
-       itm.cpp
        )
 
 set(HEADERS