]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-mergesort: mark unused parameters in trivial callback
authorJeff King <peff@peff.net>
Sat, 17 Aug 2024 08:25:03 +0000 (04:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 16:46:23 +0000 (09:46 -0700)
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>
t/helper/test-mergesort.c

index 42ccc8705167b07266a5c3902fba7cb7a8081c64..328bfe29778c46094579327c995a0d56d7435f10 100644 (file)
@@ -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 */
 }