Skip to content

Commit e49d247

Browse files
peffgitster
authored andcommitted
reftable: mark unused parameters in empty iterator functions
These unused parameters were marked in a68ec86 (reftable: mark unused parameters in virtual functions, 2024-08-17), but the functions were moved to a new file in a parallel branch via f2406c8 (reftable/generic: move generic iterator code into iterator interface, 2024-08-22). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6014639 commit e49d247

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reftable/iter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ int iterator_next(struct reftable_iterator *it, struct reftable_record *rec)
2525
return it->ops->next(it->iter_arg, rec);
2626
}
2727

28-
static int empty_iterator_seek(void *arg, struct reftable_record *want)
28+
static int empty_iterator_seek(void *arg UNUSED, struct reftable_record *want UNUSED)
2929
{
3030
return 0;
3131
}
3232

33-
static int empty_iterator_next(void *arg, struct reftable_record *rec)
33+
static int empty_iterator_next(void *arg UNUSED, struct reftable_record *rec UNUSED)
3434
{
3535
return 1;
3636
}
3737

38-
static void empty_iterator_close(void *arg)
38+
static void empty_iterator_close(void *arg UNUSED)
3939
{
4040
}
4141

0 commit comments

Comments
 (0)