summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2016-02-11 12:38:59 +0000
committerJunio C Hamano <gitster@pobox.com>2016-02-11 13:24:09 -0800
commit9b357a98205252c790312bee6b5b97aafb3edce0 (patch)
treef29f114e77caf36595f7886a5c014131e45889f4
parent5f7191e2430a540bf1ba2dd2298df6bb76c88779 (diff)
downloadgit-ep/format-printf.tar.gz
wt-status.h: use the FORMAT_PRINTF macro to declare the gcc function attribute 'format printf'ep/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--wt-status.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wt-status.h b/wt-status.h
index c9b3b744e9..09156f0a69 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -104,9 +104,9 @@ void wt_status_get_state(struct wt_status_state *state, int get_detached_from);
void wt_shortstatus_print(struct wt_status *s);
void wt_porcelain_print(struct wt_status *s);
-__attribute__((format (printf, 3, 4)))
+FORMAT_PRINTF(3, 4)
void status_printf_ln(struct wt_status *s, const char *color, const char *fmt, ...);
-__attribute__((format (printf, 3, 4)))
+FORMAT_PRINTF(3, 4)
void status_printf(struct wt_status *s, const char *color, const char *fmt, ...);
#endif /* STATUS_H */