summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-02-11 12:38:39 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-11 13:23:10 -0800
commit05aecfb718a644ad72f139187725ff9089a0a7da (patch)
tree865e1cbc036dd2aaa39f92b3a4c547d5eef40662
parent9b9a78cd60a049942f940714622c8ecba8222c95 (diff)
downloadgit-05aecfb718a644ad72f139187725ff9089a0a7da.tar.gz
advice.h: 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--advice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/advice.h b/advice.h
index b341a55ce7..12076ab5c7 100644
--- a/advice.h
+++ b/advice.h
@@ -20,8 +20,7 @@ extern int advice_object_name_warning;
extern int advice_rm_hints;
int git_default_advice_config(const char *var, const char *value);
-__attribute__((format (printf, 1, 2)))
-void advise(const char *advice, ...);
+FORMAT_PRINTF(1, 2) void advise(const char *advice, ...);
int error_resolve_conflict(const char *me);
extern void NORETURN die_resolve_conflict(const char *me);
void NORETURN die_conclude_merge(void);