From 598e6042d1cb2d220bf0a868f463634adeaca7d7 Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Thu, 12 Dec 2019 15:40:21 +0300 Subject: [PATCH] warning C4468: 'fallthrough': attribute must be followed by a case label or a default label --- include/fmt/format.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 5109368e..b993beca 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -71,15 +71,15 @@ #if __cplusplus == 201103L || __cplusplus == 201402L # if defined(__clang__) -# define FMT_FALLTHROUGH [[clang::fallthrough]]; +# define FMT_FALLTHROUGH [[clang::fallthrough]] # elif FMT_GCC_VERSION >= 700 -# define FMT_FALLTHROUGH [[gnu::fallthrough]]; +# define FMT_FALLTHROUGH [[gnu::fallthrough]] # else # define FMT_FALLTHROUGH # endif -#elif FMT_HAS_CPP_ATTRIBUTE(fallthrough) && \ - ((__cplusplus >= 201703) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)) -# define FMT_FALLTHROUGH [[fallthrough]]; +#elif (FMT_HAS_CPP_ATTRIBUTE(fallthrough) && (__cplusplus >= 201703)) || \ + (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) +# define FMT_FALLTHROUGH [[fallthrough]] #else # define FMT_FALLTHROUGH #endif