Git fork

refs: mark unused parameters in ref_store fsck callbacks

Commit ab6f79d8df (refs: set up ref consistency check infrastructure,
2024-08-08) added virtual functions to the ref store for doing fsck
checks. But the packed and reftable backends do not yet do anything.

Let's annotate them to silence -Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Jeff King and committed by
Junio C Hamano
d1aa0fcd 9dc1e748

+4 -4
+2 -2
refs/packed-backend.c
··· 1733 1733 return empty_ref_iterator_begin(); 1734 1734 } 1735 1735 1736 - static int packed_fsck(struct ref_store *ref_store, 1737 - struct fsck_options *o) 1736 + static int packed_fsck(struct ref_store *ref_store UNUSED, 1737 + struct fsck_options *o UNUSED) 1738 1738 { 1739 1739 return 0; 1740 1740 }
+2 -2
refs/reftable-backend.c
··· 2309 2309 return ret; 2310 2310 } 2311 2311 2312 - static int reftable_be_fsck(struct ref_store *ref_store, 2313 - struct fsck_options *o) 2312 + static int reftable_be_fsck(struct ref_store *ref_store UNUSED, 2313 + struct fsck_options *o UNUSED) 2314 2314 { 2315 2315 return 0; 2316 2316 }