summaryrefslogtreecommitdiff
path: root/twofish.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-07-17 04:48:28 -0400
committerJeffrey Walton <noloader@gmail.com>2017-07-17 04:48:28 -0400
commit50d1ea83144af55e4938b3972dbc365908750fad (patch)
tree950d280730fe8e4f33c817c5bc22e68d9864a5a2 /twofish.cpp
parentfe637956388f8dd60eb708ca1aecbed7386fede8 (diff)
downloadcryptopp-git-50d1ea83144af55e4938b3972dbc365908750fad.tar.gz
Cleared fall through warnings under GCC 7 (Issue 441)
Diffstat (limited to 'twofish.cpp')
-rw-r--r--twofish.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/twofish.cpp b/twofish.cpp
index 52f94266..d7104cbd 100644
--- a/twofish.cpp
+++ b/twofish.cpp
@@ -37,7 +37,9 @@ inline word32 Twofish::Base::h0(word32 x, const word32 *key, unsigned int kLen)
{
#define Q(a, b, c, d, t) q[a][GETBYTE(t,0)] ^ (q[b][GETBYTE(t,1)] << 8) ^ (q[c][GETBYTE(t,2)] << 16) ^ (q[d][GETBYTE(t,3)] << 24)
case 4: x = Q(1, 0, 0, 1, x) ^ key[6];
+ // fall through
case 3: x = Q(1, 1, 0, 0, x) ^ key[4];
+ // fall through
case 2: x = Q(0, 1, 0, 1, x) ^ key[2];
x = Q(0, 0, 1, 1, x) ^ key[0];
}