Fix build with clang

Fixes #2430
This commit is contained in:
Aleix Pol committed 2018-12-14 18:50:05 +01:00
1 parent 06019e357d
commit 192066517c
1 file changed
+4
+4
View File
@@ -12997,7 +12997,11 @@ static void
len = g_snprintf (message, sizeof (message), "%s: ", installation);
va_start (args, format);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
g_vsnprintf (message + len, sizeof (message) - len, format, args);
#pragma GCC diagnostic pop
va_end (args);
/* See systemd.journal-fields(7) for the meaning of the