Message ID | 20240817082503.GL10287@coredump.intra.peff.net (mailing list archive) |
---|---|
State | Accepted |
Commit | f288a57789b667c7922f1f8540913cf754b04e13 |
Headers | show |
Series | marking some more unused parameters | expand |
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 */ }
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(-)