summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-02-11 12:38:58 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-11 13:24:09 -0800
commit5f7191e2430a540bf1ba2dd2298df6bb76c88779 (patch)
tree46b525f4239ef44062ef0c0254782d91a579a030
parent015658815abb74941ac838e0c9e118f4af1eb627 (diff)
downloadgit-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.h b/utf8.h
index 7930b44f19..fb4a176016 100644
--- a/utf8.h
+++ b/utf8.h
@@ -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[];