[PATCH 02/22] advice.h: use the FORMATPRINTF macro to declare the gcc function attribute 'format printf'
- From
Elia Pinto <gitter.spiros@gmail.com>
- Date
- Feb 11, 2016, 12:38 UTC
- Message-ID
- <1455194339-859-3-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 <gitter.spiros@gmail.com> --- advice.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/advice.h b/advice.h index b341a55..eef82e1 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, ...); +FORMATPRINTF(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);
-- 2.5.0