diff mbox series

[16/21] fetch-pack: mark unused parameter in callback function

Message ID Y/hbp4onkIEqELNN@coredump.intra.peff.net (mailing list archive)
State Accepted
Commit 65daa9ba1c86052d7a889a407b95c3ffa61be47b
Headers show
Series more -Wunused-parameter fixes | expand

Commit Message

Jeff King Feb. 24, 2023, 6:39 a.m. UTC
The for_each_cached_alternate() interface requires a callback that takes
a negotiator parameter, but not all implementations need it. Mark the
unused one as such to appease -Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
---
 fetch-pack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fetch-pack.c b/fetch-pack.c
index 04016d1e32..67a7786865 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -722,7 +722,7 @@  static void filter_refs(struct fetch_pack_args *args,
 	*refs = newlist;
 }
 
-static void mark_alternate_complete(struct fetch_negotiator *unused,
+static void mark_alternate_complete(struct fetch_negotiator *negotiator UNUSED,
 				    struct object *obj)
 {
 	mark_complete(&obj->oid);