From: Jeff King Date: Tue, 29 Aug 2023 23:45:36 +0000 (-0400) Subject: credential: mark unused parameter in urlmatch callback X-Git-Tag: v2.43.0-rc0~106^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ca199511bf7867c87f0f542102c26f0fb9558b4;p=thirdparty%2Fgit.git credential: mark unused parameter in urlmatch callback Our select_all() callback does not need to actually look at its parameters, since the point is to match everything. But we need to mark its parameters to satisfy -Wunused-parameter. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/credential.c b/credential.c index d664754163..18098bd35e 100644 --- a/credential.c +++ b/credential.c @@ -88,8 +88,8 @@ static int proto_is_http(const char *s) static void credential_describe(struct credential *c, struct strbuf *out); static void credential_format(struct credential *c, struct strbuf *out); -static int select_all(const struct urlmatch_item *a, - const struct urlmatch_item *b) +static int select_all(const struct urlmatch_item *a UNUSED, + const struct urlmatch_item *b UNUSED) { return 0; }