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:
parent
eb1e510720
commit
b623f0ef7d
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue