Skip to content

Commit

Permalink
Workaround broken fallthrough attribute in the PGI compiler (fmtlib#1583
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vitaut authored and Thomas Bernard committed Mar 18, 2020
1 parent 57fcfca commit a3d8035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#if __cplusplus == 201103L || __cplusplus == 201402L
# if defined(__clang__)
# define FMT_FALLTHROUGH [[clang::fallthrough]]
# elif FMT_GCC_VERSION >= 700
# elif FMT_GCC_VERSION >= 700 && !defined(__PGI)
# define FMT_FALLTHROUGH [[gnu::fallthrough]]
# else
# define FMT_FALLTHROUGH
Expand Down

0 comments on commit a3d8035

Please sign in to comment.