From a69a782bfd881c2cf71dbd427930bc0d958bb556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 9 Mar 2018 23:50:25 +0100 Subject: [PATCH] Mute gcc -Werror=implicit-fallthrough, where it was intended fixes #141 --- src/native/aes/aes_aesni.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/native/aes/aes_aesni.c b/src/native/aes/aes_aesni.c index cf7f706..8c88cb0 100644 --- a/src/native/aes/aes_aesni.c +++ b/src/native/aes/aes_aesni.c @@ -301,18 +301,25 @@ static inline void _nc_aesni_dec8 (const uint8_t src[128], uint8_t dst[128], con switch (blocks) { \ case 7: \ f1 (__b (src, 6), __b (dst, 6), rk, rounds); \ + __attribute__ ((fallthrough)); \ case 6: \ f1 (__b (src, 5), __b (dst, 5), rk, rounds); \ + __attribute__ ((fallthrough)); \ case 5: \ f1 (__b (src, 4), __b (dst, 4), rk, rounds); \ + __attribute__ ((fallthrough)); \ case 4: \ f1 (__b (src, 3), __b (dst, 3), rk, rounds); \ + __attribute__ ((fallthrough)); \ case 3: \ f1 (__b (src, 2), __b (dst, 2), rk, rounds); \ + __attribute__ ((fallthrough)); \ case 2: \ f1 (__b (src, 1), __b (dst, 1), rk, rounds); \ + __attribute__ ((fallthrough)); \ case 1: \ f1 (__b (src, 0), __b (dst, 0), rk, rounds); \ + __attribute__ ((fallthrough)); \ case 0: \ return; \ default: \