Update daily_file_sink.h

pull/2744/head
Gabi Melman 2 years ago committed by GitHub
parent af1785b897
commit 9fcf609b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
};
/*

Loading…
Cancel
Save