fix(logger): Ignore GCC warning
This commit is contained in:
parent
790059243b
commit
fb6e5ea378
@ -148,10 +148,15 @@ class logger {
|
|||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wformat-security"
|
#pragma clang diagnostic ignored "-Wformat-security"
|
||||||
|
#elif defined(__GCC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wformat-security"
|
||||||
#endif
|
#endif
|
||||||
dprintf(m_fd, (prefix + format + suffix + "\n").c_str(), convert(values)...);
|
dprintf(m_fd, (prefix + format + suffix + "\n").c_str(), convert(values)...);
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
|
#elif defined(__GCC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user