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:
Jeff King
2023-02-24 01:39:27 -05:00
committed by Junio C Hamano
parent be252d3349
commit 1758712248
3 changed files with 6 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ struct data {
int non_common_revs;
};
static int compare(const void *a_, const void *b_, void *unused)
static int compare(const void *a_, const void *b_, void *data UNUSED)
{
const struct entry *a = a_;
const struct entry *b = b_;