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>
Jeff King committed
Aug 17, 2024 at 04:22 UTC
d1aa0fcd450a24256c8455db22ca232c92d1643d
2 files changed
+4
-4
refs/packed-backend.c
+2
-2
@@ -1733,8 +1733,8 @@ static struct ref_iterator *packed_reflog_iterator_begin(struct ref_store *ref_s
1733
return empty_ref_iterator_begin();
1734
}
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
{
1739
return 0;
1740
}
refs/reftable-backend.c
+2
-2
@@ -2309,8 +2309,8 @@ done:
2309
return ret;
2310
}
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
{
2315
return 0;
2316
}