summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-02-11 12:38:41 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-11 13:23:10 -0800
commitcc71bf689fad604b589094673d18443ff5afc71c (patch)
treefe09f50242831ea4ef8fb6d8fa2a63996c45861f
parent4cedeb4b9964b3a4f773d43dbb7fb94add859ea8 (diff)
downloadgit-cc71bf689fad604b589094673d18443ff5afc71c.tar.gz
builtin/index-pack.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/index-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index 6a01509587..09844e545f 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -339,7 +339,7 @@ static void parse_pack_header(void)
}
static NORETURN void bad_object(unsigned long offset, const char *format,
- ...) __attribute__((format (printf, 2, 3)));
+ ...) FORMAT_PRINTF(2, 3);
static NORETURN void bad_object(unsigned long offset, const char *format, ...)
{