summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorMatt <ukyg9e5r6k7gubiekd6@yahoo.com>2015-01-08 05:08:49 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-08 05:08:49 -0500
commitf2cd74637bbe156a11acad627386154d67b89115 (patch)
tree1ed14074cb2932cd6d2058347910edd966da305a /gpsmon.c
parent067d4e577473278acca8a95641f43675e719f857 (diff)
downloadgpsd-f2cd74637bbe156a11acad627386154d67b89115.tar.gz
Silences an unused-variable warning when ntpshm = False
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsmon.c b/gpsmon.c
index ab6da9fb..1b7be1f4 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -654,7 +654,9 @@ static void gpsmon_hook(struct gps_device_t *device, gps_mask_t changed UNUSED)
/* per-packet hook */
{
char buf[BUFSIZ];
+#ifdef NTPSHM_ENABLE
struct timedrift_t td;
+#endif /* NTPSHM_ENABLE */
#ifdef PPS_ENABLE
if (!serial && strncmp((char*)device->lexer.outbuffer, "{\"class\":\"PPS\",", 13) == 0)