0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-10 12:01:15 +01:00

ircd:📅 Suppress warning.

This commit is contained in:
Jason Volk 2019-02-15 18:29:19 -08:00
parent eb1e510720
commit b623f0ef7d

View file

@ -158,6 +158,8 @@ ircd::timef(const mutable_buffer &out,
return timef(out, tm, fmt);
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
inline ircd::string_view
ircd::timef(const mutable_buffer &out,
const struct tm &tm,
@ -165,11 +167,12 @@ ircd::timef(const mutable_buffer &out,
{
const auto len
{
strftime(data(out), size(out), fmt, &tm)
::strftime(data(out), size(out), fmt, &tm)
};
return { data(out), len };
}
#pragma GCC diagnostic pop
inline ircd::string_view
ircd::microtime(const mutable_buffer &buf)