From c1865be446f826bd9763956ea3c41b0d6fec1246 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 06:25:02 -1000 Subject: Mark the parameters callbacks leave unused With these and the two changes before them, cgit builds under git's DEVELOPER=1 settings, which also annotate their own callbacks this way. --- source/ui-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/ui-tree.c') diff --git a/source/ui-tree.c b/source/ui-tree.c index 2bb2858..3e2fb5e 100644 --- a/source/ui-tree.c +++ b/source/ui-tree.c @@ -212,7 +212,7 @@ static bool print_object(const struct object_id *oid, const char *path, return true; } -static int only_child_cb(const struct object_id *oid, struct strbuf *base, +static int only_child_cb(const struct object_id *oid, struct strbuf *base UNUSED, const char *pathname, unsigned mode, void *data) { struct only_child *child = data; @@ -365,7 +365,7 @@ cleanup: strbuf_release(&class); } -static int ls_item(const struct object_id *oid, struct strbuf *base, +static int ls_item(const struct object_id *oid, struct strbuf *base UNUSED, const char *pathname, unsigned mode, void *data) { struct walk_tree_context *walk = data; -- cgit