prio-queue: mark unused parameters in comparison functions
The prio_queue_compare_fn interface has a void pointer to allow callers to pass arbitrary data, but most comparison functions don't need it. Mark those cases to make -Wunused-parameter happy. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
be252d3349
commit
1758712248
6
commit.c
6
commit.c
@ -801,7 +801,8 @@ int compare_commits_by_author_date(const void *a_, const void *b_,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void *unused)
|
||||
int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_,
|
||||
void *unused UNUSED)
|
||||
{
|
||||
const struct commit *a = a_, *b = b_;
|
||||
const timestamp_t generation_a = commit_graph_generation(a),
|
||||
@ -821,7 +822,8 @@ int compare_commits_by_gen_then_commit_date(const void *a_, const void *b_, void
|
||||
return 0;
|
||||
}
|
||||
|
||||
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused)
|
||||
int compare_commits_by_commit_date(const void *a_, const void *b_,
|
||||
void *unused UNUSED)
|
||||
{
|
||||
const struct commit *a = a_, *b = b_;
|
||||
/* newer commits with larger date first */
|
||||
|
Reference in New Issue
Block a user