diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
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.
Diffstat (limited to '')
| -rw-r--r-- | source/ui-tree.c | 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 2 insertions, 2 deletions
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; |
