Browse Source

Mark f_print with printf type attribute to allow format checking.

master
Georgi Chorbadzhiyski 13 years ago
parent
commit
5501baa940
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common.h

+ 1
- 1
common.h View File

@ -39,7 +39,7 @@ typedef enum print_type_t {
PRINT_XML PRINT_XML
} print_type_t; } 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); typedef char * (*f_iconv)(void *, const char *, char *, size_t);
#ifdef __cplusplus #ifdef __cplusplus

Loading…
Cancel
Save