Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-02 09:05:14 +0400
committerJunio C Hamano <gitster@pobox.com>2010-05-02 09:05:14 +0400
commitc1909e72952ec6b95f819a4ad8faa8d69f1d961d (patch)
tree219a1c0a3f7e2500a3fe07ee5a6300cff10e98bb /wt-status.c
parent2381e39e5ff740883b98c5aca019950f9167b67f (diff)
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);
}