mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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:
committed by
Junio C Hamano
parent
f8ed12dec4
commit
f93b2a0424
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user