]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: make REFTABLE_UNUSED C99 compatible
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Thu, 29 May 2025 10:11:36 +0000 (03:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 May 2025 16:18:53 +0000 (09:18 -0700)
commitf1228cd12c129a7e4da317e1d21741a3ec26e07e
tree17a02fc128f649659408892992f8c346c389247d
parentfcfe60668e05ffde2610bfef9045797618c145ac
reftable: make REFTABLE_UNUSED C99 compatible

Since f93b2a0424 (reftable/basics: introduce `REFTABLE_UNUSED`
annotation, 2025-02-18), the reftable library was migrated to
use an internal version of `UNUSED`, which unconditionally sets
a GNU __attribute__ to avoid warnings function parameters that
are not being used.

Make the definition conditional to prevent breaking the build
with non GNU compilers.

Reported-by: "Randall S. Becker" <rsbecker@nexbridge.com>
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/basics.h