rev-parse: mark unused parameter in for_each_abbrev callback

We don't need to use the "data" parameter in this instance. Let's mark it to avoid -Wunused-parameter warnings. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 3, 2023 at 02:44 UTC 1e6459efcaaf9d0bffba59fd0bc0c44d0731dd65
1 file changed +1 -1
builtin/rev-parse.c
+1 -1
@@ -226,7 +226,7 @@ static int anti_reference(const char *refname, const struct object_id *oid,
226 return 0;
227 }
228
229 -static int show_abbrev(const struct object_id *oid, void *cb_data)
229 +static int show_abbrev(const struct object_id *oid, void *cb_data UNUSED)
230 {
231 show_rev(NORMAL, oid, NULL);
232 return 0;