Skip to content

Commit ccf759c

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ca1995 commit ccf759c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/fetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static void clear_item(struct refname_hash_entry *item)
308308

309309

310310
static void add_already_queued_tags(const char *refname,
311-
const struct object_id *old_oid,
311+
const struct object_id *old_oid UNUSED,
312312
const struct object_id *new_oid,
313313
void *cb_data)
314314
{

0 commit comments

Comments
 (0)