From: Michael Jeanson Date: Wed, 12 Dec 2018 20:01:39 +0000 (-0500) Subject: Add missing fall through annotations X-Git-Tag: v0.11.0~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8771d88d00d2d492442c27e7ae0dfe3f78c8b2a0;p=urcu.git Add missing fall through annotations Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/test_urcu_hash.h b/tests/benchmark/test_urcu_hash.h index 023ae1c..5e84aef 100644 --- a/tests/benchmark/test_urcu_hash.h +++ b/tests/benchmark/test_urcu_hash.h @@ -249,10 +249,11 @@ uint32_t hash_u32( /*----------------------------------- handle the last 3 uint32_t's */ switch (length) { /* all the case statements fall through */ - case 3: c += k[2]; - case 2: b += k[1]; + case 3: c += k[2]; /* fall through */ + case 2: b += k[1]; /* fall through */ case 1: a += k[0]; final(a, b, c); + /* fall through */ case 0: /* case 0: nothing left to add */ break; }