Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroffa <bm-dev@yandex.com>2022-09-29 21:10:32 +0300
committeroffa <bm-dev@yandex.com>2022-09-29 21:14:53 +0300
commit06f9953fa8916cde964f6e2ceea9936ea53b2fe6 (patch)
tree4dfb391a925b1549f8aa8344242c634d6a700353
parent7130676697b10d1704b057371e9d2493a01503d9 (diff)
Workaround deprecation warning on Clang with C++20
-rw-r--r--include/spdlog/fmt/chrono.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/spdlog/fmt/chrono.h b/include/spdlog/fmt/chrono.h
index 83fad2ff..edc56324 100644
--- a/include/spdlog/fmt/chrono.h
+++ b/include/spdlog/fmt/chrono.h
@@ -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