diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2017-04-23 01:03:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-23 01:03:42 +0200 |
commit | 74e941c0226a04e2c6b80dd149d0f55e518481ed (patch) | |
tree | cffadb1c7096b0209e01fa676e74ad301b1985c7 /src/journal-remote | |
parent | 56744c037da0ba2032fba0c7ac116317bb5ae4ae (diff) | |
parent | ae2173d66b8b9fc42f311d8586a3cf4abcc65a76 (diff) |
Merge pull request #5774 from keszybz/printf-annotations
Printf annotation improvements
Diffstat (limited to 'src/journal-remote')
-rw-r--r-- | src/journal-remote/microhttpd-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal-remote/microhttpd-util.c b/src/journal-remote/microhttpd-util.c index cae10203c6..f5d2d7967a 100644 --- a/src/journal-remote/microhttpd-util.c +++ b/src/journal-remote/microhttpd-util.c @@ -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) |