diff options
author | Elia Pinto <gitter.spiros@gmail.com> | 2016-02-11 12:38:58 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-11 13:24:09 -0800 |
commit | 5f7191e2430a540bf1ba2dd2298df6bb76c88779 (patch) | |
tree | 46b525f4239ef44062ef0c0254782d91a579a030 | |
parent | 015658815abb74941ac838e0c9e118f4af1eb627 (diff) | |
download | git-5f7191e2430a540bf1ba2dd2298df6bb76c88779.tar.gz |
utf8.h: use the FORMAT_PRINTF macro to declare the gcc function attribute 'format printf'
Use the new FORMAT_PRINTF macro (in git-compat-util.h) to declare the gcc function
attribute 'format printf'
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | utf8.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ int utf8_strwidth(const char *string); int is_utf8(const char *text); int is_encoding_utf8(const char *name); int same_encoding(const char *, const char *); -__attribute__((format (printf, 2, 3))) +FORMAT_PRINTF(2, 3) int utf8_fprintf(FILE *, const char *, ...); extern const char utf8_bom[]; |