Commit 598e6042 authored by Ivan Shynkarenka's avatar Ivan Shynkarenka Committed by Victor Zverovich

warning C4468: 'fallthrough': attribute must be followed by a case label or a default label

parent e09814dc
...@@ -71,15 +71,15 @@ ...@@ -71,15 +71,15 @@
#if __cplusplus == 201103L || __cplusplus == 201402L #if __cplusplus == 201103L || __cplusplus == 201402L
# if defined(__clang__) # if defined(__clang__)
# define FMT_FALLTHROUGH [[clang::fallthrough]]; # define FMT_FALLTHROUGH [[clang::fallthrough]]
# elif FMT_GCC_VERSION >= 700 # elif FMT_GCC_VERSION >= 700
# define FMT_FALLTHROUGH [[gnu::fallthrough]]; # define FMT_FALLTHROUGH [[gnu::fallthrough]]
# else # else
# define FMT_FALLTHROUGH # define FMT_FALLTHROUGH
# endif # endif
#elif FMT_HAS_CPP_ATTRIBUTE(fallthrough) && \ #elif (FMT_HAS_CPP_ATTRIBUTE(fallthrough) && (__cplusplus >= 201703)) || \
((__cplusplus >= 201703) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)) (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
# define FMT_FALLTHROUGH [[fallthrough]]; # define FMT_FALLTHROUGH [[fallthrough]]
#else #else
# define FMT_FALLTHROUGH # define FMT_FALLTHROUGH
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment