[PATCH] -Werror fixes

GCC's format __attribute__ is good for checking errors, especially
with -Wformat=2 parameter. This fixes most of the reported problems
against 2005-08-09 snapshot.
This commit is contained in:
Timo Sirainen
2005-08-09 18:30:22 +03:00
committed by Junio C Hamano
parent 96ad15ae2f
commit 4ec99bf080
9 changed files with 21 additions and 16 deletions

View File

@ -166,7 +166,8 @@ static int match_explicit_refs(struct ref *src, struct ref *dst,
if (matched_src)
break;
errs = 1;
error("src refspec %s does not match any.");
error("src refspec %s does not match any.",
rs[i].src);
break;
default:
errs = 1;