mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-18 03:29:12 +01:00
Ignore format nonliteral in tutils.h
This commit is contained in:
parent
1819f64467
commit
1c70e3be25
5
3rdparty/taglib/toolkit/tutils.h
vendored
5
3rdparty/taglib/toolkit/tutils.h
vendored
@ -160,6 +160,9 @@ inline String formatString(const char *format, ...) {
|
||||
char buf[BufferSize];
|
||||
int length;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
|
||||
# if defined(HAVE_VSNPRINTF)
|
||||
|
||||
length = vsnprintf(buf, BufferSize, format, args);
|
||||
@ -180,6 +183,8 @@ inline String formatString(const char *format, ...) {
|
||||
|
||||
# endif
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
va_end(args);
|
||||
|
||||
if (length > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user