summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-25 18:16:33 +0200
committerLennart Poettering <lennart@poettering.net>2020-05-25 18:25:05 +0200
commit56e577c62ff358d2abcc966559014e9e7d36d90c (patch)
treef863ef98b26e77025b8f9971ed2847a3fdd5c636 /src/journal-remote
parentjson: use our regular way to turn off compiler warnings (diff)
downloadsystemd-56e577c62ff358d2abcc966559014e9e7d36d90c.tar.xz
systemd-56e577c62ff358d2abcc966559014e9e7d36d90c.zip
tree-wide: use DISABLE_WARNING_FORMAT_NONLITERAL where appropriate
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/microhttpd-util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/journal-remote/microhttpd-util.c b/src/journal-remote/microhttpd-util.c
index 939af12572..027f2c8ff5 100644
--- a/src/journal-remote/microhttpd-util.c
+++ b/src/journal-remote/microhttpd-util.c
@@ -78,10 +78,9 @@ 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"
+ DISABLE_WARNING_FORMAT_NONLITERAL;
r = vasprintf(&m, fmt, ap);
-#pragma GCC diagnostic pop
+ REENABLE_WARNING;
va_end(ap);
if (r < 0)