Update daily_file_sink.h

This commit is contained in:
Gabi Melman 2023-05-19 19:54:47 +03:00 committed by GitHub
parent af1785b897
commit 9fcf609b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,26 +59,6 @@ struct daily_filename_format_calculator
stream << std::put_time(&now_tm, file_path.c_str()); stream << std::put_time(&now_tm, file_path.c_str());
return stream.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
}; };
/* /*