summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-05-01 22:05:14 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-05-01 22:05:14 -0700
commitc1909e72952ec6b95f819a4ad8faa8d69f1d961d (patch)
tree219a1c0a3f7e2500a3fe07ee5a6300cff10e98bb /wt-status.c
parentstatus: --ignored option shows ignored files (diff)
downloadtgif-c1909e72952ec6b95f819a4ad8faa8d69f1d961d.tar.xz
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 <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index 7bda9953e0..84a9002b8e 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);
}