Skip to content

Commit

Permalink
Remove the fallthrough attribute detection
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Feb 9, 2015
1 parent a92c179 commit 618dd9d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions format.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
#endif

#ifdef __clang__
# define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
# pragma clang diagnostic ignored "-Wdocumentation-unknown-command"
#endif

Expand Down Expand Up @@ -120,13 +119,6 @@
# define FMT_NOEXCEPT(expr)
#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
// This should be used in the private: declarations for a class
#define FMT_DISALLOW_COPY_AND_ASSIGN(TypeName) \
Expand Down

0 comments on commit 618dd9d

Please sign in to comment.