From efc0885c0b7b11beafe59c4749b89a4d8bd15490 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 7 Sep 2020 15:27:43 -0700 Subject: [PATCH] Fallthrough: ICC Warning `gnu::fallthrough` is not defined with ICC 20.2.1.20200602 and throws a warning at compile-time in ParamsParse. --- Src/Base/AMReX_Extension.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX_Extension.H b/Src/Base/AMReX_Extension.H index 1e3c20bfef8..d5167f48b58 100644 --- a/Src/Base/AMReX_Extension.H +++ b/Src/Base/AMReX_Extension.H @@ -142,7 +142,7 @@ #define AMREX_FALLTHROUGH [[fallthrough]] #elif defined(__clang__) #define AMREX_FALLTHROUGH [[clang::fallthrough]] -#elif defined(__GNUC__) && (__GNUC__ >= 7) +#elif defined(__GNUC__) && (__GNUC__ >= 7) && !defined(__INTEL_COMPILER) #define AMREX_FALLTHROUGH [[gnu::fallthrough]] #else #define AMREX_FALLTHROUGH ((void)0)