Skip to content

Commit f288a57

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f24a9b7 commit f288a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/helper/test-mergesort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static const struct dist *get_dist_by_name(const char *name)
122122
return NULL;
123123
}
124124

125-
static void mode_copy(int *arr, int n)
125+
static void mode_copy(int *arr UNUSED, int n UNUSED)
126126
{
127127
/* nothing */
128128
}

0 commit comments

Comments
 (0)