From: George Thessalonikefs Date: Mon, 7 Aug 2023 09:04:23 +0000 (+0200) Subject: - For #762: annotate case statement fallthrough for gcc. X-Git-Tag: release-1.18.0rc1~14^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=025d810b45cd58c0031d8b31dcf66be262507323;p=thirdparty%2Funbound.git - For #762: annotate case statement fallthrough for gcc. --- diff --git a/util/siphash.c b/util/siphash.c index 6a733d79b..0e1b597d0 100644 --- a/util/siphash.c +++ b/util/siphash.c @@ -122,16 +122,28 @@ int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k, switch (left) { case 7: b |= ((uint64_t)in[6]) << 48; + /** EDIT annotate case statement fallthrough for gcc */ + /* fallthrough */ case 6: b |= ((uint64_t)in[5]) << 40; + /** EDIT annotate case statement fallthrough for gcc */ + /* fallthrough */ case 5: b |= ((uint64_t)in[4]) << 32; + /** EDIT annotate case statement fallthrough for gcc */ + /* fallthrough */ case 4: b |= ((uint64_t)in[3]) << 24; + /** EDIT annotate case statement fallthrough for gcc */ + /* fallthrough */ case 3: b |= ((uint64_t)in[2]) << 16; + /** EDIT annotate case statement fallthrough for gcc */ + /* fallthrough */ case 2: b |= ((uint64_t)in[1]) << 8; + /** EDIT annotate case statement fallthrough for gcc */ + /* fallthrough */ case 1: b |= ((uint64_t)in[0]); break;