[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH]: Guard NTPSHM-related declarations
From: |
Matt |
Subject: |
[gpsd-dev] [PATCH]: Guard NTPSHM-related declarations |
Date: |
Fri, 23 Jan 2015 19:29:04 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
These functions aren't called if ntpshm support is disabled, so there's
no need to declare them.
Fixes the following warning seen on cygwin with ntpshm disabled:
In file included from gpsutils.c:22:0:
gpsd.h:1215:80: warning: 'struct shmTime' declared inside parameter list
extern int ntpshm_put(struct gps_device_t *, volatile struct shmTime
*, struct timedrift_t *);
^
gpsd.h:1215:80: warning: its scope is only this definition or
declaration, which is probably not what you want
guard-ntpshm-decls.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gpsd-dev] [PATCH]: Guard NTPSHM-related declarations,
Matt <=