Commit 618dd9d6 authored by Victor Zverovich's avatar Victor Zverovich

Remove the fallthrough attribute detection

parent a92c179a
...@@ -61,7 +61,6 @@ ...@@ -61,7 +61,6 @@
#endif #endif
#ifdef __clang__ #ifdef __clang__
# define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
# pragma clang diagnostic ignored "-Wdocumentation-unknown-command" # pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
#endif #endif
...@@ -120,13 +119,6 @@ ...@@ -120,13 +119,6 @@
# define FMT_NOEXCEPT(expr) # define FMT_NOEXCEPT(expr)
#endif #endif
#if FMT_HAS_CPP_ATTRIBUTE(clang::fallthrough) || \
(FMT_CLANG_VERSION >= 600 && __cplusplus >= 201103)
# define FMT_FALLTHROUGH [[clang::fallthrough]]
#else
# define FMT_FALLTHROUGH
#endif
// A macro to disallow the copy constructor and operator= functions // A macro to disallow the copy constructor and operator= functions
// This should be used in the private: declarations for a class // This should be used in the private: declarations for a class
#define FMT_DISALLOW_COPY_AND_ASSIGN(TypeName) \ #define FMT_DISALLOW_COPY_AND_ASSIGN(TypeName) \
......
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