From 941d5e147a2875226a25877196dab32ac629a67d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 11 Mar 2020 07:56:18 -0700 Subject: [PATCH] Workaround broken fallthrough attribute in the PGI compiler (#1583) --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 16b77fa5..537a80ce 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -66,7 +66,7 @@ #if __cplusplus == 201103L || __cplusplus == 201402L # if defined(__clang__) # define FMT_FALLTHROUGH [[clang::fallthrough]] -# elif FMT_GCC_VERSION >= 700 +# elif FMT_GCC_VERSION >= 700 && !defined(__PGI) # define FMT_FALLTHROUGH [[gnu::fallthrough]] # else # define FMT_FALLTHROUGH