summaryrefslogtreecommitdiff
path: root/bits.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-06 20:38:37 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 20:38:37 -0500
commit56e719970de0fcbbc6c086159f31f82b5eb35128 (patch)
treeeec477c566d221cb1823935155231f38036e778c /bits.c
parentf1e30c3197910f319cf2d624666be87a0580b82a (diff)
downloadgpsd-56e719970de0fcbbc6c086159f31f82b5eb35128.tar.gz
Code is fully cppcheck, splint, and Coverity clean.
All regression tests pass. PPS is live.
Diffstat (limited to 'bits.c')
-rw-r--r--bits.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bits.c b/bits.c
index 21b635f0..4b6015e9 100644
--- a/bits.c
+++ b/bits.c
@@ -137,7 +137,6 @@ void putbed64(char *buf, int off, double val)
/*@+shiftimplementation -ignoresigns@*/
}
-// cppcheck-suppress unusedFunction
u_int16_t swap_u16(u_int16_t i)
/* byte-swap a 16-bit unsigned int */
{
@@ -149,7 +148,6 @@ u_int16_t swap_u16(u_int16_t i)
return (c1 << 8) + c2;
}
-// cppcheck-suppress unusedFunction
u_int32_t swap_u32(u_int32_t i)
/* byte-swap a 32-bit unsigned int */
{
@@ -163,7 +161,6 @@ u_int32_t swap_u32(u_int32_t i)
return ((u_int32_t)c1 << 24) + ((u_int32_t)c2 << 16) + ((u_int32_t)c3 << 8) + c4;
}
-// cppcheck-suppress unusedFunction
u_int64_t swap_u64(u_int64_t i)
/* byte-swap a 64-bit unsigned int */
{