From 84ea9668a9d40c68d4657ddf7bf033a763c0d90c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 24 Nov 2013 07:00:17 -0500 Subject: Suppress compiler warnings. --- gps2udp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gps2udp.c') diff --git a/gps2udp.c b/gps2udp.c index d7da8207..22228b56 100644 --- a/gps2udp.c +++ b/gps2udp.c @@ -23,6 +23,7 @@ #include #include #include +#include #ifndef S_SPLINT_S #include @@ -291,7 +292,7 @@ static ssize_t read_gpsd(char *message, size_t len) retry = 0; } if (debug > 0) - (void)write (1, ".", 1); + ignore_return(write (1, ".", 1)); break; default: /* we lost connection with gpsd */ @@ -461,7 +462,7 @@ int main(int argc, char **argv) // strtok break original string (void)strncpy((char *)packet, buffer, sizeof(packet)); for (j=0; j