From d6c3b7e970429b2d8325161a749fe06858d234bc Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 27 Oct 2017 12:31:54 +0100 Subject: [PATCH] imaptest.c: Add `format(printf, ...)' attribute to functions. Stops warnings from gcc for send_imap_command() and add_msg(). --- uip/imaptest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uip/imaptest.c b/uip/imaptest.c index f937cb55..66c033ce 100644 --- a/uip/imaptest.c +++ b/uip/imaptest.c @@ -73,14 +73,14 @@ static int capability_set(const char *); static void clear_capability(void); static int have_capability(void); static int send_imap_command(netsec_context *, int noflush, char **errstr, - const char *fmt, ...); + const char *fmt, ...) CHECK_PRINTF(4, 5); static int get_imap_response(netsec_context *, const char *token, char **tokenresp, char **status, int failerr, char **errstr); static void ts_report(const char *str, struct timeval *tv); -static void add_msg(int queue, const char *fmt, ...); +static void add_msg(int queue, const char *fmt, ...) CHECK_PRINTF(2, 3); static bool timestamp = false; -- 2.56.0