summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-11 13:52:32 -0700
committerKeith Packard <keithp@keithp.com>2012-07-11 13:52:32 -0700
commitcf44ea354c2d1780cee343132c6058e11e9eefa3 (patch)
tree65d3045816b8efa6023bdeb6efcfd992da0459b9 /src/core
parentfe70611c3c7d4b8cce3b5292f0ec549f3191bf86 (diff)
altos: Fix gcc compiler warnings in GPS code
unused variables and mis-matches in printf format codes. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ao_gps_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ao_gps_print.c b/src/core/ao_gps_print.c
index fcdedd30..47c945d7 100644
--- a/src/core/ao_gps_print.c
+++ b/src/core/ao_gps_print.c
@@ -40,8 +40,8 @@ ao_gps_print(__xdata struct ao_gps_orig *gps_data) __reentrant
printf(AO_TELEM_GPS_LATITUDE " %ld "
AO_TELEM_GPS_LONGITUDE " %ld "
AO_TELEM_GPS_ALTITUDE " %d ",
- gps_data->latitude,
- gps_data->longitude,
+ (long) gps_data->latitude,
+ (long) gps_data->longitude,
gps_data->altitude);
if (gps_data->flags & AO_GPS_DATE_VALID)