replace: mark unused parameter in each_mergetag_fn callback

We don't look at the "commit" parameter to our callback, as our "mergetag_data" pointer contains the original name "ref", which we use instead. But we can't get rid of it, since other for_each_mergetag callbacks do use it. Let's mark the parameter to avoid -Wunused-parameter warnings. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 3, 2023 at 02:44 UTC 4c7b06f2084899ba0b328e17a37de088d932292c
1 file changed +1 -1
builtin/replace.c
+1 -1
@@ -409,7 +409,7 @@ struct check_mergetag_data {
409 const char **argv;
410 };
411
412 -static int check_one_mergetag(struct commit *commit,
412 +static int check_one_mergetag(struct commit *commit UNUSED,
413 struct commit_extra_header *extra,
414 void *data)
415 {