From 653edb992e9a046cab5d6039a1c89973b73bbc45 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 27 Sep 2026 20:26:15 -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/scan-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/scan-tree.c') diff --git a/source/scan-tree.c b/source/scan-tree.c index 7e7f28b..10f661d 100644 --- a/source/scan-tree.c +++ b/source/scan-tree.c @@ -79,7 +79,7 @@ static int trusted_key(const char *name, const char *value) } static int apply_gitconfig(const char *key, const char *value, - const __attribute__((unused)) struct config_context *cfg_ctx, void *cb) + const struct config_context *cfg_ctx UNUSED, void *cb UNUSED) { const char *name; -- cgit 2.12.1