Skip to content

Commit

Permalink
- For #762: annotate case statement fallthrough for gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
gthess committed Aug 7, 2023
1 parent 4ccb613 commit 025d810
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions util/siphash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 025d810

Please sign in to comment.