From: Elia Pinto Date: Thu, 11 Feb 2016 12:38:47 GMT Subject: [PATCH 10/22] config.c: use the FORMATPRINTF macro to declare the gcc function attribute 'format printf' Message-ID: <1455194339-859-11-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 --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 86a5eb2..671bfd3 100644 --- a/config.c +++ b/config.c @@ -1604,7 +1604,7 @@ void git_die_config_linenr(const char *key, const char *filename, int linenr) key, filename, linenr); } -NORETURN __attribute__((format(printf, 2, 3))) +NORETURN FORMATPRINTF(2,3) void git_die_config(const char *key, const char *err, ...) { const struct string_list *values; -- 2.5.0