summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f43d1b8)
raw | patch | inline | side by side (parent: f43d1b8)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 14 Aug 2016 18:28:43 +0000 (20:28 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 14 Aug 2016 18:28:43 +0000 (20:28 +0200) |
utils_complain.c:56:40: warning: format string is not a string literal
[-Wformat-nonliteral]
vsnprintf (message, sizeof (message), format, ap);
^~~~~~
[-Wformat-nonliteral]
vsnprintf (message, sizeof (message), format, ap);
^~~~~~
src/daemon/utils_complain.c | patch | blob | history |
index d028c06735cdb17843b8d6fb72ff89476021adb4..69909bb6710b22d6a8a120d11189ee1a6033e7ac 100644 (file)
#include "plugin.h"
/* vcomplain returns 0 if it did not report, 1 else */
+__attribute__ ((format (printf, 3, 0)))
static int vcomplain (int level, c_complain_t *c,
const char *format, va_list ap)
{