]> Kevux Git Server - rit/commit
reftable/fsck: use REFTABLE_UNUSED instead of UNUSED
authorPatrick Steinhardt <ps@pks.im>
Thu, 2 Apr 2026 07:31:16 +0000 (09:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2026 17:45:43 +0000 (10:45 -0700)
commitaa8938573050e6ab44a46e3b9f26c0e442f835aa
tree4b11f8bfccec9dfdc4a6b4c43e25ee228da9c901
parentb45ea595e6f6b03a749abc2c8e508504429a4cf3
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 9051638519 (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>
reftable/fsck.c