summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-12 00:23:26 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-12 00:23:26 -0500
commitd3d309e16b5004f92a3010b1305d2ed834f72166 (patch)
treed5042f9e64bd6c1daaa1238ca31598270e36f6b7 /gpsd.h-tail
parent5b3382dce406f2a520ff63b64d58f80e24ae74e2 (diff)
downloadgpsd-d3d309e16b5004f92a3010b1305d2ed834f72166.tar.gz
Shut up. splint!
All regression tests pass.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 85895c5c..1cb77cef 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -893,7 +893,8 @@ extern void pps_early_init(struct gps_context_t *);
* this only handles the case where two normalized timespecs
* are added or subracted. (e.g. only a one needs to be borrowed/carried
*/
-static inline void TS_NORM( struct timespec *ts)
+/*@-type -noeffect@*/ /* splint is confused about struct timespec */
+/*@unused@*/static inline void TS_NORM( struct timespec *ts)
{
if ( ( 1 <= ts->tv_sec ) ||
( (0 == ts->tv_sec ) && (0 <= ts->tv_nsec ) ) ) {
@@ -920,6 +921,7 @@ static inline void TS_NORM( struct timespec *ts)
}
}
}
+/*@+type +noeffect@*/
/* normalize a timeval */
#define TV_NORM(tv) \