mirror of
https://github.com/systemd/systemd.git
synced 2026-07-13 02:51:14 +00:00
µhttpd-util: use #pragma to silence warning about nonliteral pattern
This is safe, because we're taking a pattern which was already marked with _printf_ and appending a literal string.
This commit is contained in:
@@ -103,7 +103,10 @@ int mhd_respondf(struct MHD_Connection *connection,
|
||||
errno = -error;
|
||||
fmt = strjoina(format, "\n");
|
||||
va_start(ap, format);
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
r = vasprintf(&m, fmt, ap);
|
||||
#pragma GCC diagnostic pop
|
||||
va_end(ap);
|
||||
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user