Skip to content

Commit

Permalink
Merge pull request #2499 from offa/clang_cpp20_workaround
Browse files Browse the repository at this point in the history
Workaround deprecation warning on Clang with C++20
  • Loading branch information
gabime authored Sep 29, 2022
2 parents 7130676 + 06f9953 commit 523a075
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/spdlog/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
# define FMT_HEADER_ONLY
# endif
# endif
# if __cplusplus >= 202002L && defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdeprecated" // Workaround for Clang C++20; remove once fmt >= 9.x
# endif
# include <spdlog/fmt/bundled/chrono.h>
# if __cplusplus >= 202002L && defined(__clang__)
# pragma clang diagnostic pop
# endif
# else
# include <fmt/chrono.h>
# endif
Expand Down

0 comments on commit 523a075

Please sign in to comment.