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>
maint
Jeff King 2023-07-03 02:44:31 -04:00 committed by Junio C Hamano
parent 4c7b06f208
commit 1e6459efca
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ static int anti_reference(const char *refname, const struct object_id *oid,
return 0;
}

static int show_abbrev(const struct object_id *oid, void *cb_data)
static int show_abbrev(const struct object_id *oid, void *cb_data UNUSED)
{
show_rev(NORMAL, oid, NULL);
return 0;