siphash: silence fall-through warnings
This commit is contained in:
parent
199c56e141
commit
da75b6f735
14
siphash.c
14
siphash.c
|
@ -61,13 +61,13 @@ siphash (const unsigned char key[16], const unsigned char *m, size_t len)
|
||||||
|
|
||||||
switch (len - blocks)
|
switch (len - blocks)
|
||||||
{
|
{
|
||||||
case 7: last7 |= (uint64_t) m[i + 6] << 48;
|
case 7: last7 |= (uint64_t) m[i + 6] << 48; // Fall-through
|
||||||
case 6: last7 |= (uint64_t) m[i + 5] << 40;
|
case 6: last7 |= (uint64_t) m[i + 5] << 40; // Fall-through
|
||||||
case 5: last7 |= (uint64_t) m[i + 4] << 32;
|
case 5: last7 |= (uint64_t) m[i + 4] << 32; // Fall-through
|
||||||
case 4: last7 |= (uint64_t) m[i + 3] << 24;
|
case 4: last7 |= (uint64_t) m[i + 3] << 24; // Fall-through
|
||||||
case 3: last7 |= (uint64_t) m[i + 2] << 16;
|
case 3: last7 |= (uint64_t) m[i + 2] << 16; // Fall-through
|
||||||
case 2: last7 |= (uint64_t) m[i + 1] << 8;
|
case 2: last7 |= (uint64_t) m[i + 1] << 8; // Fall-through
|
||||||
case 1: last7 |= (uint64_t) m[i + 0] ;
|
case 1: last7 |= (uint64_t) m[i + 0] ; // Fall-through
|
||||||
default:;
|
default:;
|
||||||
};
|
};
|
||||||
v3 ^= last7;
|
v3 ^= last7;
|
||||||
|
|
Loading…
Reference in New Issue