From 5501baa9404dfa0c873a00951893504b6ac341e7 Mon Sep 17 00:00:00 2001 From: Georgi Chorbadzhiyski Date: Fri, 9 Sep 2011 21:37:50 +0300 Subject: [PATCH] Mark f_print with printf type attribute to allow format checking. --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index 96c753a..133142f 100644 --- a/common.h +++ b/common.h @@ -39,7 +39,7 @@ typedef enum print_type_t { PRINT_XML } print_type_t; -typedef void (*f_print)(void *, const char *, ...); +typedef void (*f_print)(void *, const char *, ...) __attribute__ ((format(printf, 2, 3))); typedef char * (*f_iconv)(void *, const char *, char *, size_t); #ifdef __cplusplus