summaryrefslogtreecommitdiff
path: root/driver_evermore.c
diff options
context:
space:
mode:
authorBeat Bolli <bbolli@ewanet.ch>2013-11-03 15:01:46 +0100
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 08:34:14 -0500
commit61dc6385ea25570b02559886658a2e1284b389e6 (patch)
tree089bf6af30f9304737813ae1ad8f141918243e2c /driver_evermore.c
parent73fe1dc96b099aacf05982e4590897384fbe0b1f (diff)
downloadgpsd-61dc6385ea25570b02559886658a2e1284b389e6.tar.gz
Fix compiler warnings with clang 4.2 on OS X 10.7.5
On OS X, /usr/include/sys/termios.h typedefs speed_t as unsigned long. On Linux, it is an unsigned int. This causes printf() format string warnings. Fix this by down-casting to an unsigned int and using "%u" as format. Also discard a close() result. Signed-off-by: Beat Bolli <bbolli@ewanet.ch> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'driver_evermore.c')
-rw-r--r--driver_evermore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_evermore.c b/driver_evermore.c
index 092da3a1..238a82f9 100644
--- a/driver_evermore.c
+++ b/driver_evermore.c
@@ -550,7 +550,7 @@ static bool evermore_speed(struct gps_device_t *session,
{
/*@ -type @*/
gpsd_report(session->context->debug, LOG_PROG,
- "evermore_speed(%u%c%d)\n", speed, parity,
+ "evermore_speed(%u%c%d)\n", (unsigned int)speed, parity,
stopbits);
/* parity and stopbit switching aren't available on this chip */
if (parity != session->gpsdata.dev.parity