From: Ralph Corderoy Date: Fri, 27 Oct 2017 11:31:54 +0000 (+0100) Subject: imaptest.c: Add `format(printf, ...)' attribute to functions. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d6c3b7e970429b2d8325161a749fe06858d234bc imaptest.c: Add `format(printf, ...)' attribute to functions. Stops warnings from gcc for send_imap_command() and add_msg(). --- 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;