Workaround broken fallthrough attribute in the PGI compiler (#1583)

This commit is contained in:
Victor Zverovich 2020-03-11 07:56:18 -07:00
parent ee2b828b9a
commit 941d5e147a

View File

@ -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