diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-09-26 19:08:13 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-09-26 19:08:13 +0200 |
commit | da75b6f7356e9dc34dc4005ee993cee84c6bf5ba (patch) | |
tree | f8dc575967490bc795006a3f284df6f23cfed6df | |
parent | 199c56e1418fad52f110328585b47a6ff2956620 (diff) | |
download | liberty-da75b6f7356e9dc34dc4005ee993cee84c6bf5ba.tar.gz liberty-da75b6f7356e9dc34dc4005ee993cee84c6bf5ba.tar.xz liberty-da75b6f7356e9dc34dc4005ee993cee84c6bf5ba.zip |
siphash: silence fall-through warnings
-rw-r--r-- | siphash.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -61,13 +61,13 @@ siphash (const unsigned char key[16], const unsigned char *m, size_t len) switch (len - blocks) { - case 7: last7 |= (uint64_t) m[i + 6] << 48; - case 6: last7 |= (uint64_t) m[i + 5] << 40; - case 5: last7 |= (uint64_t) m[i + 4] << 32; - case 4: last7 |= (uint64_t) m[i + 3] << 24; - case 3: last7 |= (uint64_t) m[i + 2] << 16; - case 2: last7 |= (uint64_t) m[i + 1] << 8; - case 1: last7 |= (uint64_t) m[i + 0] ; + case 7: last7 |= (uint64_t) m[i + 6] << 48; // Fall-through + case 6: last7 |= (uint64_t) m[i + 5] << 40; // Fall-through + case 5: last7 |= (uint64_t) m[i + 4] << 32; // Fall-through + case 4: last7 |= (uint64_t) m[i + 3] << 24; // Fall-through + case 3: last7 |= (uint64_t) m[i + 2] << 16; // Fall-through + case 2: last7 |= (uint64_t) m[i + 1] << 8; // Fall-through + case 1: last7 |= (uint64_t) m[i + 0] ; // Fall-through default:; }; v3 ^= last7; |