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> --- builtin/receive-pack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c index f2d6761..956278f 100644 --- a/builtin/receive-pack.c +++ b/builtin/receive-pack.c @@ -277,8 +277,8 @@ struct command { char ref_name[FLEX_ARRAY]; /* more */ }; -static void rp_error(const char *err, ...) __attribute__((format (printf, 1, 2))); -static void rp_warning(const char *err, ...) __attribute__((format (printf, 1, 2))); +static void rp_error(const char *err, ...) FORMATPRINTF(1,2); +static void rp_warning(const char *err, ...) FORMATPRINTF(1,2); static void report_message(const char *prefix, const char *err, va_list params) { -- 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