summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-02-11 12:38:54 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-11 13:24:09 -0800
commitc473f8569563a2907532e51a76413d965fe6bd23 (patch)
tree7f409063ec4dddb61627fa0bd1d0ff2c027ccf1f
parentcba8d86c77384ab8f745f138cda3389b2f268040 (diff)
downloadgit-c473f8569563a2907532e51a76413d965fe6bd23.tar.gz
remote.c: 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--remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index 02e698a5e0..024a8199db 100644
--- a/remote.c
+++ b/remote.c
@@ -1673,7 +1673,7 @@ int branch_merge_matches(struct branch *branch,
return refname_match(branch->merge[i]->src, refname);
}
-__attribute((format (printf,2,3)))
+FORMAT_PRINTF(2, 3)
static const char *error_buf(struct strbuf *err, const char *fmt, ...)
{
if (err) {