From a2b6276888257d66b42d622d86fceb0ae4496b9a Mon Sep 17 00:00:00 2001 From: Jon Schlueter Date: Wed, 25 Feb 2015 14:15:42 -0500 Subject: Warning hunting cleanup in gpsmon.c for visiblize not always used visiblize only used under PPS_ENABLE guard --- gpsmon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gpsmon.c') diff --git a/gpsmon.c b/gpsmon.c index 563d75dc..cb0c0f67 100644 --- a/gpsmon.c +++ b/gpsmon.c @@ -168,6 +168,7 @@ static inline void report_unlock(void) { } * ******************************************************************************/ +#ifdef PPS_ENABLE static void visibilize(/*@out@*/char *buf2, size_t len2, const char *buf) /* string is mostly printable, dress up the nonprintables a bit */ { @@ -182,6 +183,7 @@ static void visibilize(/*@out@*/char *buf2, size_t len2, const char *buf) (void)snprintf(buf2 + strlen(buf2), 6, "\\x%02x", (unsigned)(*sp & 0xff)); } +#endif /* PPS_ENABLE */ /*@-compdef -mustdefine@*/ static void cond_hexdump(/*@out@*/char *buf2, size_t len2, -- cgit v1.2.1