Skip to content

Commit d1aa0fc

Browse files
peffgitster
authored andcommitted
refs: mark unused parameters in ref_store fsck callbacks
Commit ab6f79d (refs: set up ref consistency check infrastructure, 2024-08-08) added virtual functions to the ref store for doing fsck checks. But the packed and reftable backends do not yet do anything. Let's annotate them to silence -Wunused-parameter. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9dc1e74 commit d1aa0fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

refs/packed-backend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,8 +1733,8 @@ static struct ref_iterator *packed_reflog_iterator_begin(struct ref_store *ref_s
17331733
return empty_ref_iterator_begin();
17341734
}
17351735

1736-
static int packed_fsck(struct ref_store *ref_store,
1737-
struct fsck_options *o)
1736+
static int packed_fsck(struct ref_store *ref_store UNUSED,
1737+
struct fsck_options *o UNUSED)
17381738
{
17391739
return 0;
17401740
}

refs/reftable-backend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,8 +2309,8 @@ static int reftable_be_reflog_expire(struct ref_store *ref_store,
23092309
return ret;
23102310
}
23112311

2312-
static int reftable_be_fsck(struct ref_store *ref_store,
2313-
struct fsck_options *o)
2312+
static int reftable_be_fsck(struct ref_store *ref_store UNUSED,
2313+
struct fsck_options *o UNUSED)
23142314
{
23152315
return 0;
23162316
}

0 commit comments

Comments
 (0)