From af3a10ed831531dc3a88a46312239d60fc645270 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 26 Jul 2021 12:08:56 -0500 Subject: [PATCH] wolfcrypt/types.h: fix FALL_THROUGH macro to work warning-free on gcc-11. --- wolfssl/wolfcrypt/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 54cfce686..2e2817e39 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -300,7 +300,7 @@ decouple library dependencies with standard string, memory and so on. #if defined(WOLFSSL_LINUXKM) && defined(fallthrough) #define FALL_THROUGH fallthrough #else - #define FALL_THROUGH __attribute__ ((fallthrough)); + #define FALL_THROUGH ; __attribute__ ((fallthrough)) #endif #endif #endif