Use GCC_FMT_ATTR (format checking)

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Stefan Weil 2010-09-23 21:28:05 +02:00 committed by Blue Swirl
parent e5924d8980
commit 8b7968f7c4
14 changed files with 25 additions and 16 deletions

View file

@ -91,7 +91,8 @@ static int token_is_escape(QObject *obj, const char *value)
/**
* Error handler
*/
static void parse_error(JSONParserContext *ctxt, QObject *token, const char *msg, ...)
static void GCC_FMT_ATTR(3, 4) parse_error(JSONParserContext *ctxt,
QObject *token, const char *msg, ...)
{
va_list ap;
va_start(ap, msg);