]> git.ipfire.org Git - thirdparty/git.git/commitdiff
replace: mark unused parameter in each_mergetag_fn callback
authorJeff King <peff@peff.net>
Mon, 3 Jul 2023 06:44:28 +0000 (02:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jul 2023 00:24:00 +0000 (17:24 -0700)
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>
builtin/replace.c

index 17b75229d2242d292ec1296d234f0479fc9c9fd7..da59600ad22fda16155a278a210478fb55d0d94e 100644 (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)
 {