Skip to content

Commit

Permalink
Get rid of implicit-fallthrough warn. in GCC 7 and 8
Browse files Browse the repository at this point in the history
This change enables FMT_FALLLTHROUGH also for GCC-Compilers in the versions 7 and 8.
  • Loading branch information
medithe authored and vitaut committed Sep 7, 2018
1 parent 2117775 commit 981797f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 981797f

Please sign in to comment.