reftable/basics: introduce REFTABLE_UNUSED annotation

Introduce the `REFTABLE_UNUSED` annotation and replace all existing
users of `UNUSED` in the reftable library to use the new macro instead.

Note that we unconditionally define `MAYBE_UNUSED` in the exact same
way, so doing so unconditionally for `REFTABLE_UNUSED` should be fine,
too.

Suggested-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt
2025-02-18 10:20:50 +01:00
committed by Junio C Hamano
parent f8ed12dec4
commit f93b2a0424
5 changed files with 24 additions and 22 deletions

View File

@@ -649,7 +649,7 @@ static void write_object_record(void *void_arg, void *key)
done:;
}
static void object_record_free(void *void_arg UNUSED, void *key)
static void object_record_free(void *void_arg REFTABLE_UNUSED, void *key)
{
struct obj_index_tree_node *entry = key;