summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-02-11 12:38:44 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-11 13:24:09 -0800
commitb81f80dc8f02d3f13294e0ccd6292bea435eda9b (patch)
treee5401e9c8ffcce22c97afe0199e836258f1b58c5
parent7816514d02ddaa3c369880e9e3c8a93eb0c96fb8 (diff)
downloadgit-b81f80dc8f02d3f13294e0ccd6292bea435eda9b.tar.gz
builtin/upload-archive.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--builtin/upload-archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/upload-archive.c b/builtin/upload-archive.c
index dbfe14f3fe..904581b817 100644
--- a/builtin/upload-archive.c
+++ b/builtin/upload-archive.c
@@ -46,7 +46,7 @@ int cmd_upload_archive_writer(int argc, const char **argv, const char *prefix)
return write_archive(sent_argv.argc, sent_argv.argv, prefix, 0, NULL, 1);
}
-__attribute__((format (printf, 1, 2)))
+FORMAT_PRINTF(1, 2)
static void error_clnt(const char *fmt, ...)
{
struct strbuf buf = STRBUF_INIT;