From: Jeff King Date: Mon, 3 Jul 2023 06:44:28 +0000 (-0400) Subject: replace: mark unused parameter in each_mergetag_fn callback X-Git-Tag: v2.42.0-rc0~35^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c7b06f2084899ba0b328e17a37de088d932292c;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/replace.c b/builtin/replace.c index 17b75229d2..da59600ad2 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -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) {