summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-02 05:05:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-05-02 05:05:14 (GMT)
commitc1909e72952ec6b95f819a4ad8faa8d69f1d961d (patch)
tree219a1c0a3f7e2500a3fe07ee5a6300cff10e98bb /wt-status.c
parent2381e39e5ff740883b98c5aca019950f9167b67f (diff)
downloadgit-c1909e72952ec6b95f819a4ad8faa8d69f1d961d.zip
git-c1909e72952ec6b95f819a4ad8faa8d69f1d961d.tar.gz
git-c1909e72952ec6b95f819a4ad8faa8d69f1d961d.tar.bz2
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 7bda995..84a9002 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);
}