summaryrefslogtreecommitdiffstats
path: root/t/helper/test-mergesort.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-08-17 10:25:03 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-17 18:46:23 +0200
commitf288a57789b667c7922f1f8540913cf754b04e13 (patch)
tree249024eb8a9c924b82ca69137db93165c0541978 /t/helper/test-mergesort.c
parentt-hashmap: mark unused parameters in callback function (diff)
downloadgit-f288a57789b667c7922f1f8540913cf754b04e13.tar.xz
git-f288a57789b667c7922f1f8540913cf754b04e13.zip
test-mergesort: mark unused parameters in trivial callback
The mode_copy() function does nothing, but since it's used as a function pointer within "struct mode", it has to conform to the interface. Mark it to quiet -Wunused-parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r--t/helper/test-mergesort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-mergesort.c b/t/helper/test-mergesort.c
index 42ccc87051..328bfe2977 100644
--- a/t/helper/test-mergesort.c
+++ b/t/helper/test-mergesort.c
@@ -122,7 +122,7 @@ static const struct dist *get_dist_by_name(const char *name)
return NULL;
}
-static void mode_copy(int *arr, int n)
+static void mode_copy(int *arr UNUSED, int n UNUSED)
{
/* nothing */
}