diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-07-17 04:48:28 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-07-17 04:48:28 -0400 |
commit | 50d1ea83144af55e4938b3972dbc365908750fad (patch) | |
tree | 950d280730fe8e4f33c817c5bc22e68d9864a5a2 /twofish.cpp | |
parent | fe637956388f8dd60eb708ca1aecbed7386fede8 (diff) | |
download | cryptopp-git-50d1ea83144af55e4938b3972dbc365908750fad.tar.gz |
Cleared fall through warnings under GCC 7 (Issue 441)
Diffstat (limited to 'twofish.cpp')
-rw-r--r-- | twofish.cpp | 2 |
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];
}
|