From 9fcf609b67e700dc9c38ead1cd5527394742e454 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Fri, 19 May 2023 19:54:47 +0300 Subject: [PATCH] Update daily_file_sink.h --- include/spdlog/sinks/daily_file_sink.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/include/spdlog/sinks/daily_file_sink.h b/include/spdlog/sinks/daily_file_sink.h index 90af9676..8f20e136 100644 --- a/include/spdlog/sinks/daily_file_sink.h +++ b/include/spdlog/sinks/daily_file_sink.h @@ -59,26 +59,6 @@ struct daily_filename_format_calculator stream << std::put_time(&now_tm, file_path.c_str()); return stream.str(); } - -private: -#if defined __GNUC__ -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wformat-nonliteral" -#endif - - static size_t strftime(char *str, size_t count, const char *format, const std::tm *time) - { - return std::strftime(str, count, format, time); - } - - static size_t strftime(wchar_t *str, size_t count, const wchar_t *format, const std::tm *time) - { - return std::wcsftime(str, count, format, time); - } - -#if defined(__GNUC__) -# pragma GCC diagnostic pop -#endif }; /*