From 5e77c371aa75bcc9e7af2acfdd93f670fda8a3f6 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 13 Oct 2021 23:18:35 +0200 Subject: -Wimplicit-fallthrough=4 compliance --- siphash.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'siphash.c') diff --git a/siphash.c b/siphash.c index f724058..003eb5b 100644 --- a/siphash.c +++ b/siphash.c @@ -116,16 +116,22 @@ int siphash(const void *in, const size_t inlen, const void *k, uint8_t *out, switch (left) { case 7: b |= ((uint64_t)ni[6]) << 48; + /* FALLTHRU */ case 6: b |= ((uint64_t)ni[5]) << 40; + /* FALLTHRU */ case 5: b |= ((uint64_t)ni[4]) << 32; + /* FALLTHRU */ case 4: b |= ((uint64_t)ni[3]) << 24; + /* FALLTHRU */ case 3: b |= ((uint64_t)ni[2]) << 16; + /* FALLTHRU */ case 2: b |= ((uint64_t)ni[1]) << 8; + /* FALLTHRU */ case 1: b |= ((uint64_t)ni[0]); break; -- cgit v1.2.3