From db4a13bdf37b1103c2014261458323e26b034eec Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 27 Apr 2016 14:37:24 +0200 Subject: [PATCH] add format attribute to varargs functions --- src/daemon/utils_complain.h | 3 +++ 1 file changed, 3 insertions(+) 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 { \ -- 2.11.0