mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
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
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user