summaryrefslogtreecommitdiff
path: root/driver_garmin.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-19 16:11:52 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-19 16:11:52 -0500
commit944914be5fcb4c176279a8fc8cd14a07eeb46822 (patch)
tree0479045256e60c2928182ff0876f76e23e44ad88 /driver_garmin.c
parent4ac774d5a48fc7341904cd61858532e383adc726 (diff)
downloadgpsd-944914be5fcb4c176279a8fc8cd14a07eeb46822.tar.gz
Code is now static-checker clean with splint, cppcheck, and Coverity.
All regression tests pass. PPS is live.
Diffstat (limited to 'driver_garmin.c')
-rw-r--r--driver_garmin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/driver_garmin.c b/driver_garmin.c
index e3768e85..f6e46155 100644
--- a/driver_garmin.c
+++ b/driver_garmin.c
@@ -622,8 +622,10 @@ gps_mask_t PrintSERPacket(struct gps_device_t *session, unsigned char pkt_id,
/*@ -branchstate @*/
-// For debugging, decodes and prints some known packets.
+// 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)
+/* For debugging, decodes and prints some known packets */
{
gps_mask_t mask = 0;
int maj_ver;
@@ -844,6 +846,8 @@ static void Build_Send_SER_Packet(struct gps_device_t *session,
* libudev: http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/
*/
/*@-compdef -usedef -nullpass@*/
+// This works around cppcheck not looking into enough config branches
+// cppcheck-suppress unusedFunction
static bool is_usb_device(const char *path UNUSED, int vendor, int product,
const int debug)
{