fetch: mark unused parameter in ref_transaction callback

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>

Jeff King committed Aug 29, 2023 at 19:45 UTC ccf759cdb7e11e9fcfcbad02685472ce2c7a7d9a
1 file changed +1 -1
builtin/fetch.c
+1 -1
@@ -308,7 +308,7 @@ static void clear_item(struct refname_hash_entry *item)
308
309
310 static void add_already_queued_tags(const char *refname,
311 - const struct object_id *old_oid,
311 + const struct object_id *old_oid UNUSED,
312 const struct object_id *new_oid,
313 void *cb_data)
314 {