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>
This commit is contained in:
Jeff King 2023-07-03 02:44:28 -04:00 committed by Junio C Hamano
parent 80d4e5f3a5
commit 4c7b06f208
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ struct check_mergetag_data {
const char **argv;
};
static int check_one_mergetag(struct commit *commit,
static int check_one_mergetag(struct commit *commit UNUSED,
struct commit_extra_header *extra,
void *data)
{