]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/basics: introduce `REFTABLE_UNUSED` annotation
authorPatrick Steinhardt <ps@pks.im>
Tue, 18 Feb 2025 09:20:50 +0000 (10:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Feb 2025 18:55:38 +0000 (10:55 -0800)
commitf93b2a04243ee1a95920ae02a9423accbe1c3719
tree16e2834f903866dbacd7d94a75c08e37cb5000d6
parentf8ed12dec459df9ea0d43ccacc93cb2c32702c0e
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>
reftable/basics.h
reftable/blocksource.c
reftable/iter.c
reftable/record.c
reftable/writer.c