]> git.zerfleddert.de Git - hmcfgusb/commitdiff
Suppress warnings about non-literal format strings
authorFlorian Franzmann <bwlf@bandrate.org>
Sat, 5 Sep 2020 16:03:31 +0000 (18:03 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sat, 5 Sep 2020 16:45:20 +0000 (18:45 +0200)
hmland.c

index 35f819280fb4ca0d36bbd5b289fe90bbeac628cf..86519578552d02236a0bcb802f3f6466f5b02425 100644 (file)
--- 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);
                }
        }
Impressum, Datenschutz