From: Elia Pinto Date: Thu, 11 Feb 2016 12:38:49 GMT Subject: [PATCH 12/22] fsck.c: use the FORMATPRINTF macro to declare the gcc function attribute 'format printf' Message-ID: <1455194339-859-13-git-send-email-gitter.spiros@gmail.com> In-Reply-To: <1455194339-859-1-git-send-email-gitter.spiros@gmail.com> Use the new FORMATPRINTF macro (in git-compat-util.h) to declare the gcc function attribute 'format printf' Signed-off-by: Elia Pinto --- fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsck.c b/fsck.c index c637f66..953b8e4 100644 --- a/fsck.c +++ b/fsck.c @@ -264,7 +264,7 @@ static void append_msg_id(struct strbuf *sb, const char *msg_id) strbuf_addstr(sb, ": "); } -__attribute__((format (printf, 4, 5))) +FORMATPRINTF(4,5) static int report(struct fsck_options *options, struct object *object, enum fsck_msg_id id, const char *fmt, ...) { -- 2.5.0