Ignore format nonliteral in tutils.h
This commit is contained in:
parent
1819f64467
commit
1c70e3be25
|
@ -160,6 +160,9 @@ inline String formatString(const char *format, ...) {
|
||||||
char buf[BufferSize];
|
char buf[BufferSize];
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||||
|
|
||||||
# if defined(HAVE_VSNPRINTF)
|
# if defined(HAVE_VSNPRINTF)
|
||||||
|
|
||||||
length = vsnprintf(buf, BufferSize, format, args);
|
length = vsnprintf(buf, BufferSize, format, args);
|
||||||
|
@ -180,6 +183,8 @@ inline String formatString(const char *format, ...) {
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
if (length > 0)
|
if (length > 0)
|
||||||
|
|
Loading…
Reference in New Issue