]> git.ipfire.org Git - thirdparty/git.git/commitdiff
credential: mark unused parameter in urlmatch callback
authorJeff King <peff@peff.net>
Tue, 29 Aug 2023 23:45:36 +0000 (19:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Aug 2023 00:56:26 +0000 (17:56 -0700)
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>
credential.c

index d6647541634f3850ea147cebc681a5944d8e5ee9..18098bd35ebab9683ae0046c1712b111eaeb3fe1 100644 (file)
@@ -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;
 }