diff options
| author | Jeff King <peff@peff.net> | 2023-02-24 01:39:27 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 09:13:31 -0800 |
| commit | 1758712248ab134a99cf73dcb62c115d955697d8 (patch) | |
| tree | f36602237b8182f31186f7f55ccd7a9a35a9a0ea /t/helper/test-prio-queue.c | |
| parent | for_each_object: mark unused callback parameters (diff) | |
| download | git-1758712248ab134a99cf73dcb62c115d955697d8.tar.gz git-1758712248ab134a99cf73dcb62c115d955697d8.zip | |
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>
Diffstat (limited to 't/helper/test-prio-queue.c')
| -rw-r--r-- | t/helper/test-prio-queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-prio-queue.c b/t/helper/test-prio-queue.c index 133b5e6f4a..496c7be07d 100644 --- a/t/helper/test-prio-queue.c +++ b/t/helper/test-prio-queue.c @@ -2,7 +2,7 @@ #include "cache.h" #include "prio-queue.h" -static int intcmp(const void *va, const void *vb, void *data) +static int intcmp(const void *va, const void *vb, void *data UNUSED) { const int *a = va, *b = vb; return *a - *b; |
