summaryrefslogtreecommitdiff
path: root/bits.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-18 04:44:01 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-18 04:44:01 -0400
commit7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b (patch)
tree8a224b5479e288537d51d0f044df7e8cd532b574 /bits.c
parentc46e369a26bb693e744206979ee9d8674c27f1da (diff)
downloadgpsd-7ee2bf88e99f0ffa027c5839e5ae85d55752ac1b.tar.gz
More cppcheck warning fixups. All regression tests pass.
Diffstat (limited to 'bits.c')
-rw-r--r--bits.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bits.c b/bits.c
index 502e0a7d..d700daac 100644
--- a/bits.c
+++ b/bits.c
@@ -74,6 +74,7 @@ int64_t sbits(char buf[], unsigned int start, unsigned int width, bool le)
}
#ifdef __UNUSED__
+// cppcheck-suppress unusedFunction
u_int16_t swap_u16(u_int16_t i)
/* byte-swap a 16-bit unsigned int */
{
@@ -85,6 +86,7 @@ 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 */
{
@@ -98,6 +100,7 @@ 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 */
{