[PATCH 12/15] test-mergesort: mark unused parameters in trivial callback
- From
Jeff King <peff@peff.net>
- Date
- Aug 17, 2024, 08:25 UTC
- Message-ID
- <20240817082503.GL10287@coredump.intra.peff.net>
- In-Reply-To
- <20240817082101.GA6761@coredump.intra.peff.net>
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> --- t/helper/test-mergesort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 */ }
-- 2.46.0.585.gd6679c16d8