Skip to content

Commit cc2f810

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1e6459e commit cc2f810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/tag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int for_each_tag_name(const char **argv, each_tag_name_fn fn,
121121
return had_error;
122122
}
123123

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

158-
static int verify_tag(const char *name, const char *ref,
158+
static int verify_tag(const char *name, const char *ref UNUSED,
159159
const struct object_id *oid, void *cb_data)
160160
{
161161
int flags;

0 commit comments

Comments
 (0)