Skip to content

Commit

Permalink
Add missing fall through annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jeanson <[email protected]>
Signed-off-by: Mathieu Desnoyers <[email protected]>
  • Loading branch information
mjeanson authored and compudj committed Dec 13, 2018
1 parent 99bfa9e commit 8771d88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/benchmark/test_urcu_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8771d88

Please sign in to comment.