summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-02-11 12:38:47 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-11 13:24:09 -0800
commitaca5edd99efc461829f761db3c5b857aaea3fc55 (patch)
tree31ada00ad4efa29237cb001b25d8a49e9c295325
parent68e3fd54428970f208a7345364552a80e2354460 (diff)
downloadgit-aca5edd99efc461829f761db3c5b857aaea3fc55.tar.gz
config.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--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index b95ac3a9cd..971d0c1949 100644
--- a/config.c
+++ b/config.c
@@ -1628,7 +1628,7 @@ void git_die_config_linenr(const char *key, const char *filename, int linenr)
key, filename, linenr);
}
-NORETURN __attribute__((format(printf, 2, 3)))
+NORETURN FORMAT_PRINTF(2, 3)
void git_die_config(const char *key, const char *err, ...)
{
const struct string_list *values;