]> git.ipfire.org Git - thirdparty/git.git/commitdiff
refs: mark unused parameters in ref_store fsck callbacks
authorJeff King <peff@peff.net>
Sat, 17 Aug 2024 08:22:05 +0000 (04:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Aug 2024 16:46:11 +0000 (09:46 -0700)
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>
refs/packed-backend.c
refs/reftable-backend.c

index f00106df149228c82db3a8776a4d953443f9cc51..afd292ec6a536155dd6027b74a33abbd26af4848 100644 (file)
@@ -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;
 }
index 8b7ffbf66f7df28f90b281158c42b78a1fb86cfc..7337d4422dd4bb537c99efea4b0fb0028a8cd941 100644 (file)
@@ -2309,8 +2309,8 @@ done:
        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;
 }