Skip to content

Commit 4c7b06f

Browse files
peffgitster
authored andcommitted
replace: mark unused parameter in each_mergetag_fn callback
We don't look at the "commit" parameter to our callback, as our "mergetag_data" pointer contains the original name "ref", which we use instead. But we can't get rid of it, since other for_each_mergetag callbacks do use it. Let's mark the parameter to avoid -Wunused-parameter warnings. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 80d4e5f commit 4c7b06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/replace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ struct check_mergetag_data {
409409
const char **argv;
410410
};
411411

412-
static int check_one_mergetag(struct commit *commit,
412+
static int check_one_mergetag(struct commit *commit UNUSED,
413413
struct commit_extra_header *extra,
414414
void *data)
415415
{

0 commit comments

Comments
 (0)