fsmonitor: mark unused hashmap callback parameters

Like many hashmap comparison functions, our cookies_cmp() does not look at its extra void data parameter. This should have been annotated in 02c3c59e62 (hashmap: mark unused callback parameters, 2022-08-19), but this new case was added around the same time (plus fsmonitor is not built at all on Linux, so it is easy to miss there). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Sep 18, 2023 at 18:33 UTC 1fe41944b268c5e999c5bbd9539e7dcd18c2c5de
1 file changed +3 -2
builtin/fsmonitor--daemon.c
+3 -2
@@ -129,8 +129,9 @@ struct fsmonitor_cookie_item {
129 enum fsmonitor_cookie_item_result result;
130 };
131
132 -static int cookies_cmp(const void *data, const struct hashmap_entry *he1,
133 - const struct hashmap_entry *he2, const void *keydata)
132 +static int cookies_cmp(const void *data UNUSED,
133 + const struct hashmap_entry *he1,
134 + const struct hashmap_entry *he2, const void *keydata)
135 {
136 const struct fsmonitor_cookie_item *a =
137 container_of(he1, const struct fsmonitor_cookie_item, entry);