tag: mark unused parameters in each_tag_name_fn callbacks

We iterate over the set of input tag names using callbacks. But not all
operations need the same inputs, so some parameters go unused (but of
course not the same ones for each operation). Mark the unused ones 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:33 -04:00 committed by Junio C Hamano
parent 1e6459efca
commit cc2f810172
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ static int for_each_tag_name(const char **argv, each_tag_name_fn fn,
return had_error;
}

static int collect_tags(const char *name, const char *ref,
static int collect_tags(const char *name UNUSED, const char *ref,
const struct object_id *oid, void *cb_data)
{
struct string_list *ref_list = cb_data;
@ -155,7 +155,7 @@ static int delete_tags(const char **argv)
return result;
}

static int verify_tag(const char *name, const char *ref,
static int verify_tag(const char *name, const char *ref UNUSED,
const struct object_id *oid, void *cb_data)
{
int flags;