From: Jeff King Date: Sat, 17 Aug 2024 08:25:03 +0000 (-0400) Subject: test-mergesort: mark unused parameters in trivial callback X-Git-Tag: v2.47.0-rc0~94^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f288a57789b667c7922f1f8540913cf754b04e13;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- 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 */ }