Skip to content

Commit 8ca1995

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4548b01 commit 8ca1995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

credential.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ static int proto_is_http(const char *s)
8888
static void credential_describe(struct credential *c, struct strbuf *out);
8989
static void credential_format(struct credential *c, struct strbuf *out);
9090

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)
9393
{
9494
return 0;
9595
}

0 commit comments

Comments
 (0)