From 28bf37132d86cc59320e21d843960d086cef664c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 30 Mar 2015 17:10:53 -0400 Subject: Retire splint from our set of static analyzers. The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W. --- monitor_garmin.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'monitor_garmin.c') diff --git a/monitor_garmin.c b/monitor_garmin.c index 570179b7..f370cab4 100644 --- a/monitor_garmin.c +++ b/monitor_garmin.c @@ -97,7 +97,6 @@ static char *fixdesc[] = { static bool garmin_bin_initialize(void) { - /*@-globstate@*/ unsigned int i; #ifndef CONTROLSEND_ENABLE @@ -107,7 +106,6 @@ static bool garmin_bin_initialize(void) } #endif - /*@ -onlytrans @*/ miscwin = subwin(devicewin, 1, 80, 1, 0); mid51win = subwin(devicewin, 12, 18, 2, 0); mid114win = subwin(devicewin, GARMIN_CHANNELS + 3, 23, 2, 18); @@ -118,7 +116,6 @@ static bool garmin_bin_initialize(void) (void)syncok(mid51win, true); (void)syncok(mid114win, true); - /*@ -nullpass @*/ (void)wattrset(miscwin, A_BOLD); display(miscwin, 0, 0, "Time:"); (void)wattrset(miscwin, A_NORMAL); @@ -155,10 +152,8 @@ static bool garmin_bin_initialize(void) gpsd_time_init(session.context, time(NULL)); return true; - /*@+globstate@*/ } -/*@ -globstate -compdef */ static void garmin_bin_update(uint16_t pkt_id, uint32_t pkt_size UNUSED, unsigned char *pkt_data) { int i; @@ -287,7 +282,6 @@ static void garmin_bin_ser_update(void) monitor_log("BAD 0x%02x=", buf[1]); } } -/*@ +globstate +compdef */ static void garmin_bin_wrap(void) { -- cgit v1.2.1