Skip to content

Commit 832845e

Browse files
pks-tgitster
authored andcommitted
reftable/fsck: use REFTABLE_UNUSED instead of UNUSED
While we have the reftable-specific `REFTABLE_UNUSED` header, we accidentally introduced a new usage of the Git-specific `UNUSED` header into the reftable library in 9051638 (reftable: add code to facilitate consistency checks, 2025-10-07). Convert the site to use `REFTABLE_UNUSED`. Ideally, we'd move the definition of `UNUSED` into "git-compat-util.h" so that it becomes in accessible to the reftable library. But this is unfortunately not easily possible as "compat/mingw-posix.h" requires this macro, and this header is included by "compat/posix.h". Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 17ec27f commit 832845e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reftable/fsck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static int table_check_name(struct reftable_table *table,
6363

6464
static int table_checks(struct reftable_table *table,
6565
reftable_fsck_report_fn report_fn,
66-
reftable_fsck_verbose_fn verbose_fn UNUSED,
66+
reftable_fsck_verbose_fn verbose_fn REFTABLE_UNUSED,
6767
void *cb_data)
6868
{
6969
table_check_fn table_check_fns[] = {

0 commit comments

Comments
 (0)