diff mbox series

[03/15] refs: mark unused parameters in ref_store fsck callbacks

Message ID 20240817082205.GC10287@coredump.intra.peff.net (mailing list archive)
State Accepted
Commit d1aa0fcd450a24256c8455db22ca232c92d1643d
Headers show
Series marking some more unused parameters | expand

Commit Message

Jeff King Aug. 17, 2024, 8:22 a.m. UTC
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>
---
 refs/packed-backend.c   | 4 ++--
 refs/reftable-backend.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/refs/packed-backend.c b/refs/packed-backend.c
index f00106df14..afd292ec6a 100644
--- a/refs/packed-backend.c
+++ b/refs/packed-backend.c
@@ -1733,8 +1733,8 @@  static struct ref_iterator *packed_reflog_iterator_begin(struct ref_store *ref_s
 	return empty_ref_iterator_begin();
 }
 
-static int packed_fsck(struct ref_store *ref_store,
-		       struct fsck_options *o)
+static int packed_fsck(struct ref_store *ref_store UNUSED,
+		       struct fsck_options *o UNUSED)
 {
 	return 0;
 }
diff --git a/refs/reftable-backend.c b/refs/reftable-backend.c
index 8b7ffbf66f..7337d4422d 100644
--- a/refs/reftable-backend.c
+++ b/refs/reftable-backend.c
@@ -2309,8 +2309,8 @@  static int reftable_be_reflog_expire(struct ref_store *ref_store,
 	return ret;
 }
 
-static int reftable_be_fsck(struct ref_store *ref_store,
-			    struct fsck_options *o)
+static int reftable_be_fsck(struct ref_store *ref_store UNUSED,
+			    struct fsck_options *o UNUSED)
 {
 	return 0;
 }