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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Aug 29, 2023 at 19:45 UTC 8ca199511bf7867c87f0f542102c26f0fb9558b4
1 file changed +2 -2
credential.c
+2 -2
@@ -88,8 +88,8 @@ static int proto_is_http(const char *s)
88 static void credential_describe(struct credential *c, struct strbuf *out);
89 static void credential_format(struct credential *c, struct strbuf *out);
90
91 -static int select_all(const struct urlmatch_item *a,
92 - const struct urlmatch_item *b)
91 +static int select_all(const struct urlmatch_item *a UNUSED,
92 + const struct urlmatch_item *b UNUSED)
93 {
94 return 0;
95 }