]> git.ipfire.org Git - thirdparty/git.git/commitdiff
fetch: mark unused parameter in ref_transaction callback
authorJeff King <peff@peff.net>
Tue, 29 Aug 2023 23:45:37 +0000 (19:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Aug 2023 00:56:26 +0000 (17:56 -0700)
Since this callback is just trying to collect the set of queued tag
updates, there is no need for it to look at old_oid at all. Mark it as
unused to appease -Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c

index eed4a7cdb6c1d672ab7324ea129d83ea312b688e..8f9352950573948cfdf8c3d260b1117a4286d93b 100644 (file)
@@ -308,7 +308,7 @@ static void clear_item(struct refname_hash_entry *item)
 
 
 static void add_already_queued_tags(const char *refname,
-                                   const struct object_id *old_oid,
+                                   const struct object_id *old_oid UNUSED,
                                    const struct object_id *new_oid,
                                    void *cb_data)
 {