From 03dfbbe6fef7639fd20a2b2e0fd97df2ff8e6516 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 7 Dec 2019 22:52:49 +0100 Subject: [PATCH] cli: fix format string clang-10 warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: cli.c:196:19: error: format string is not a string literal [-Werror=format-nonliteral] Signed-off-by: Rosen Penev [split into separate commit] Signed-off-by: Petr Å tetiar --- cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cli.c b/cli.c index 8970f4f..6ba97ea 100644 --- a/cli.c +++ b/cli.c @@ -185,6 +185,7 @@ static void cli_perror(void) uci_perror(ctx, appname); } +__attribute__((format(printf, 1, 2))) static void cli_error(const char *fmt, ...) { va_list ap; -- 2.25.1