]> git.mxchange.org Git - flightgear.git/commitdiff
Clean up a couple warnings.
authorcurt <curt>
Mon, 21 Jul 2008 19:57:56 +0000 (19:57 +0000)
committercurt <curt>
Mon, 21 Jul 2008 19:57:56 +0000 (19:57 +0000)
utils/GPSsmooth/UGear_main.cxx

index 318b0ea42c8d3fe83cded6b3a0fc76ee185ff620..c38f0c4089ab69b52e91e6ca36f24ab100bbf471 100644 (file)
@@ -1076,7 +1076,7 @@ int main( int argc, char **argv ) {
                     health_time = healthpacket.time;
                     current_time = health_time;
                     printf("Received a health packet, sequence: %d\n",
-                           healthpacket.command_sequence);
+                           (int)healthpacket.command_sequence);
                     command_mgr.update_cmd_sequence(healthpacket.command_sequence);
                 } else {
                     cout << "oops health back in time: " << healthpacket.time << " " << health_time << endl;
@@ -1111,9 +1111,9 @@ int main( int argc, char **argv ) {
             if ( current_time >= last_time + (1/hertz) ) {
                 // if ( gpspacket.lat > -500 ) {
                 int londeg = (int)navpacket.lon;
-                double lonmin = fabs(navpacket.lon - londeg);
+                // double lonmin = fabs(navpacket.lon - londeg);
                 int latdeg = (int)navpacket.lat;
-                double latmin = fabs(navpacket.lat - latdeg);
+                // double latmin = fabs(navpacket.lat - latdeg);
                 char londir = 'E'; if ( londeg < 0 ) londir = 'W';
                 char latdir = 'N'; if ( latdeg < 0 ) latdir = 'S';
                 londeg = abs(londeg);