mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-22 07:41:16 -05:00
- For #762: annotate case statement fallthrough for gcc.
This commit is contained in:
parent
4ccb613396
commit
025d810b45
1 changed files with 12 additions and 0 deletions
|
|
@ -122,16 +122,28 @@ int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k,
|
||||||
switch (left) {
|
switch (left) {
|
||||||
case 7:
|
case 7:
|
||||||
b |= ((uint64_t)in[6]) << 48;
|
b |= ((uint64_t)in[6]) << 48;
|
||||||
|
/** EDIT annotate case statement fallthrough for gcc */
|
||||||
|
/* fallthrough */
|
||||||
case 6:
|
case 6:
|
||||||
b |= ((uint64_t)in[5]) << 40;
|
b |= ((uint64_t)in[5]) << 40;
|
||||||
|
/** EDIT annotate case statement fallthrough for gcc */
|
||||||
|
/* fallthrough */
|
||||||
case 5:
|
case 5:
|
||||||
b |= ((uint64_t)in[4]) << 32;
|
b |= ((uint64_t)in[4]) << 32;
|
||||||
|
/** EDIT annotate case statement fallthrough for gcc */
|
||||||
|
/* fallthrough */
|
||||||
case 4:
|
case 4:
|
||||||
b |= ((uint64_t)in[3]) << 24;
|
b |= ((uint64_t)in[3]) << 24;
|
||||||
|
/** EDIT annotate case statement fallthrough for gcc */
|
||||||
|
/* fallthrough */
|
||||||
case 3:
|
case 3:
|
||||||
b |= ((uint64_t)in[2]) << 16;
|
b |= ((uint64_t)in[2]) << 16;
|
||||||
|
/** EDIT annotate case statement fallthrough for gcc */
|
||||||
|
/* fallthrough */
|
||||||
case 2:
|
case 2:
|
||||||
b |= ((uint64_t)in[1]) << 8;
|
b |= ((uint64_t)in[1]) << 8;
|
||||||
|
/** EDIT annotate case statement fallthrough for gcc */
|
||||||
|
/* fallthrough */
|
||||||
case 1:
|
case 1:
|
||||||
b |= ((uint64_t)in[0]);
|
b |= ((uint64_t)in[0]);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue