From c1909e72952ec6b95f819a4ad8faa8d69f1d961d Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 1 May 2010 22:05:14 -0700 Subject: [PATCH] wt-status: fix 'fprintf' compilation warning color_fprintf() has the same function signature as fprintf() and newer gcc warns when a non-constant string is fed as the format Signed-off-by: Junio C Hamano --- wt-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wt-status.c b/wt-status.c index 7bda9953e..84a9002b8 100644 --- a/wt-status.c +++ b/wt-status.c @@ -741,7 +741,7 @@ static void wt_shortstatus_other(int null_termination, struct string_list_item * struct strbuf onebuf = STRBUF_INIT; const char *one; one = quote_path(it->string, -1, &onebuf, s->prefix); - color_fprintf(s->fp, color(WT_STATUS_UNTRACKED, s), sign); + color_fprintf(s->fp, color(WT_STATUS_UNTRACKED, s), "%s", sign); printf(" %s\n", one); strbuf_release(&onebuf); } -- 2.30.2