[dvblast-devel] [PATCH 02/17] Mark f_print with printf type attribute to allow format checking.
Georgi Chorbadzhiyski
gf at unixsol.org
Fri Sep 9 23:28:24 CEST 2011
---
common.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common.h b/common.h
index b183922..ef6905c 100644
--- a/common.h
+++ b/common.h
@@ -26,7 +26,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
--
1.7.5.1
More information about the dvblast-devel
mailing list