From f43d1b843bc886fa4180d505a216a3f5c64b2d41 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 14 Aug 2016 20:18:47 +0200 Subject: [PATCH] libcollectdclient: annotate vprintf-like function client.c:126:21: warning: format string is not a string literal [-Wformat-nonliteral] status = vprintf (format, ap); ^~~~~~ --- src/libcollectdclient/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index a15e0aac..4dbee1e8 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -113,6 +113,7 @@ typedef struct lcc_response_s lcc_response_t; /* * Private functions */ +__attribute__ ((format (printf, 1, 0))) static int lcc_tracef(char const *format, ...) { va_list ap; -- 2.30.2