Merge branch 'ab/attribute-format'
Many "printf"-like helper functions we have have been annotated with __attribute__() to catch placeholder/parameter mismatches. * ab/attribute-format: advice.h: add missing __attribute__((format)) & fix usage *.h: add a few missing __attribute__((format)) *.c static functions: add missing __attribute__((format)) sequencer.c: move static function to avoid forward decl *.c static functions: don't forward-declare __attribute__
This commit is contained in:
@ -451,6 +451,7 @@ static int buffer_gets(struct imap_buffer *b, char **s)
|
||||
/* not reached */
|
||||
}
|
||||
|
||||
__attribute__((format (printf, 1, 2)))
|
||||
static void imap_info(const char *msg, ...)
|
||||
{
|
||||
va_list va;
|
||||
@ -463,6 +464,7 @@ static void imap_info(const char *msg, ...)
|
||||
}
|
||||
}
|
||||
|
||||
__attribute__((format (printf, 1, 2)))
|
||||
static void imap_warn(const char *msg, ...)
|
||||
{
|
||||
va_list va;
|
||||
@ -504,6 +506,7 @@ static char *next_arg(char **s)
|
||||
return ret;
|
||||
}
|
||||
|
||||
__attribute__((format (printf, 3, 4)))
|
||||
static int nfsnprintf(char *buf, int blen, const char *fmt, ...)
|
||||
{
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user