Get rid of implicit-fallthrough warn. in GCC 7 and 8

This change enables FMT_FALLLTHROUGH also for GCC-Compilers in the versions 7 and 8.
This commit is contained in:
medithe 2018-09-07 17:53:15 +02:00 committed by Victor Zverovich
parent 2117775747
commit 981797f059

View File

@ -630,6 +630,8 @@ FMT_FUNC void grisu2_prettify(char *buffer, size_t &size, int exp,
#if FMT_CLANG_VERSION
# define FMT_FALLTHROUGH [[clang::fallthrough]];
#elif FMT_GCC_VERSION >= 700
# define FMT_FALLTHROUGH [[gnu::fallthrough]];
#else
# define FMT_FALLTHROUGH
#endif