From: Ruben Kerkhof Date: Sun, 14 Aug 2016 18:18:47 +0000 (+0200) Subject: libcollectdclient: annotate vprintf-like function X-Git-Tag: collectd-5.6.0~30 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f43d1b843bc886fa4180d505a216a3f5c64b2d41;p=collectd.git libcollectdclient: annotate vprintf-like function client.c:126:21: warning: format string is not a string literal [-Wformat-nonliteral] status = vprintf (format, ap); ^~~~~~ --- 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;