From: Ruben Kerkhof Date: Wed, 27 Apr 2016 12:37:24 +0000 (+0200) Subject: add format attribute to varargs functions X-Git-Tag: collectd-5.6.0~313 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=db4a13bdf37b1103c2014261458323e26b034eec add format attribute to varargs functions --- diff --git a/src/daemon/utils_complain.h b/src/daemon/utils_complain.h index 390f9616..9d96d35d 100644 --- a/src/daemon/utils_complain.h +++ b/src/daemon/utils_complain.h @@ -66,6 +66,7 @@ typedef struct * `c' Identifier for the complaint. * `format' Message format - see the documentation of printf(3). */ +__attribute__ ((format(printf,3,4))) void c_complain (int level, c_complain_t *c, const char *format, ...); /* @@ -80,6 +81,7 @@ void c_complain (int level, c_complain_t *c, const char *format, ...); * * See `c_complain' for further details and a description of the parameters. */ +__attribute__ ((format(printf,3,4))) void c_complain_once (int level, c_complain_t *c, const char *format, ...); /* @@ -101,6 +103,7 @@ void c_complain_once (int level, c_complain_t *c, const char *format, ...); * * See `c_complain' for a description of the parameters. */ +__attribute__ ((format(printf,3,4))) void c_do_release (int level, c_complain_t *c, const char *format, ...); #define c_release(level, c, ...) \ do { \