diff options
author | Elia Pinto <gitter.spiros@gmail.com> | 2016-02-11 12:38:54 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-11 13:24:09 -0800 |
commit | c473f8569563a2907532e51a76413d965fe6bd23 (patch) | |
tree | 7f409063ec4dddb61627fa0bd1d0ff2c027ccf1f | |
parent | cba8d86c77384ab8f745f138cda3389b2f268040 (diff) | |
download | git-c473f8569563a2907532e51a76413d965fe6bd23.tar.gz |
remote.c: 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-- | remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1673,7 +1673,7 @@ int branch_merge_matches(struct branch *branch, return refname_match(branch->merge[i]->src, refname); } -__attribute((format (printf,2,3))) +FORMAT_PRINTF(2, 3) static const char *error_buf(struct strbuf *err, const char *fmt, ...) { if (err) { |