diff options
author | Elia Pinto <gitter.spiros@gmail.com> | 2016-02-11 12:38:39 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-11 13:23:10 -0800 |
commit | 05aecfb718a644ad72f139187725ff9089a0a7da (patch) | |
tree | 865e1cbc036dd2aaa39f92b3a4c547d5eef40662 | |
parent | 9b9a78cd60a049942f940714622c8ecba8222c95 (diff) | |
download | git-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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |