mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
refs: mark unused parameters in ref_store fsck callbacks
Commit ab6f79d8df (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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
9dc1e748ef
commit
d1aa0fcd45
@ -1733,8 +1733,8 @@ static struct ref_iterator *packed_reflog_iterator_begin(struct ref_store *ref_s
|
||||
return empty_ref_iterator_begin();
|
||||
}
|
||||
|
||||
static int packed_fsck(struct ref_store *ref_store,
|
||||
struct fsck_options *o)
|
||||
static int packed_fsck(struct ref_store *ref_store UNUSED,
|
||||
struct fsck_options *o UNUSED)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -2309,8 +2309,8 @@ done:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int reftable_be_fsck(struct ref_store *ref_store,
|
||||
struct fsck_options *o)
|
||||
static int reftable_be_fsck(struct ref_store *ref_store UNUSED,
|
||||
struct fsck_options *o UNUSED)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user