Add JQ_FALLTHROUGH and use it to quiet warnings

This commit is contained in:
Nicolas Williams authored and Emanuele Torre committed 2023-07-30 04:25:54 +02:00
1 parent a6eb055c47
commit c8b30dff4a
4 files changed
+22 -2

No files matched your search

+2
View File
@@ -1222,7 +1222,9 @@ static uint32_t jvp_string_hash(jv jstr) {
switch(len & 3) {
case 3: k1 ^= tail[2] << 16;
JQ_FALLTHROUGH;
case 2: k1 ^= tail[1] << 8;
JQ_FALLTHROUGH;
case 1: k1 ^= tail[0];
k1 *= c1; k1 = rotl32(k1,15); k1 *= c2; h1 ^= k1;
}