aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2024-08-17 04:25:03 -0400
committerJunio C Hamano <gitster@pobox.com>2024-08-17 09:46:23 -0700
commitf288a57789b667c7922f1f8540913cf754b04e13 (patch)
tree249024eb8a9c924b82ca69137db93165c0541978
parentf24a9b78a90b333f6857a371be14fd3ee9842add (diff)
downloadgit-f288a57789b667c7922f1f8540913cf754b04e13.tar.xz
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>
-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 */
}