summaryrefslogtreecommitdiff
path: root/credential.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-08-29 23:45:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-08-30 00:56:26 (GMT)
commit8ca199511bf7867c87f0f542102c26f0fb9558b4 (patch)
tree70f98a87b3eb995e84cbca37a70c3aca1128934b /credential.c
parent4548b0145f17c633de5e267b6c7932c72824e9d3 (diff)
downloadgit-8ca199511bf7867c87f0f542102c26f0fb9558b4.zip
git-8ca199511bf7867c87f0f542102c26f0fb9558b4.tar.gz
git-8ca199511bf7867c87f0f542102c26f0fb9558b4.tar.bz2
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>
Diffstat (limited to 'credential.c')
-rw-r--r--credential.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/credential.c b/credential.c
index d664754..18098bd 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;
}