X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/blobdiff_plain/4fd904dfbdea0d4bc3dd901a5feb9338ffa4e25d..2f47f304d1ffbed3869066b0cb335b7bf32a9e8d:/hmland.c diff --git a/hmland.c b/hmland.c index 35f8192..8651957 100644 --- a/hmland.c +++ b/hmland.c @@ -116,12 +116,18 @@ static void write_log(const char *buf, int len, const char *fmt, ...) if (fmt) { if (logfile) { va_start(ap, fmt); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-nonliteral" vfprintf(logfile, fmt, ap); +#pragma GCC diagnostic pop va_end(ap); } if (verbose) { va_start(ap, fmt); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-nonliteral" vprintf(fmt, ap); +#pragma GCC diagnostic pop va_end(ap); } }