diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-05-16 02:25:46 +0300 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-05-15 16:31:41 -0700 |
commit | 0f6c70745415711a4b6c01046430e787a678cef1 (patch) | |
tree | 28fa557d4de25d251113b3d2a0fd7e1b2d552b24 /driver_garmin.c | |
parent | bc7213208a5c4bb3033791916519478ae28f73a2 (diff) | |
download | gpsd-0f6c70745415711a4b6c01046430e787a678cef1.tar.gz |
Hide functions that are used only on Linux, to reduce compiler warnings.
Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'driver_garmin.c')
-rw-r--r-- | driver_garmin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/driver_garmin.c b/driver_garmin.c index 787e5205..8f581698 100644 --- a/driver_garmin.c +++ b/driver_garmin.c @@ -264,7 +264,7 @@ static inline uint16_t get_uint16(const uint8_t * buf) | ((uint16_t) (0xFF & buf[1]) << 8); } -#if defined(HAVE_LIBUSB) +#if defined(HAVE_LIBUSB) && defined(__linux__) static inline uint32_t get_int32(const uint8_t * buf) { return (uint32_t) (0xFF & buf[0]) @@ -283,7 +283,7 @@ static inline double radtodeg(double rad) static gps_mask_t PrintSERPacket(struct gps_device_t *session, unsigned char pkt_id, int pkt_len, unsigned char *buf); -#if defined(HAVE_LIBUSB) +#if defined(HAVE_LIBUSB) && defined(__linux__) static gps_mask_t PrintUSBPacket(struct gps_device_t *session, Packet_t * pkt); #endif /* HAVE_LIBUSB */ @@ -620,7 +620,7 @@ gps_mask_t PrintSERPacket(struct gps_device_t *session, unsigned char pkt_id, } -#if defined(HAVE_LIBUSB) +#if defined(HAVE_LIBUSB) && defined(__linux__) // This works around cppcheck not looking into enough config branches // cppcheck-suppress unusedFunction static gps_mask_t PrintUSBPacket(struct gps_device_t *session, Packet_t * pkt) @@ -832,7 +832,7 @@ static void Build_Send_SER_Packet(struct gps_device_t *session, } -#if defined(HAVE_LIBUSB) +#if defined(HAVE_LIBUSB) && defined(__linux__) /* * is_usb_device() - is a specified device USB matching given vendor/product? * |