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@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html