mirror of https://github.com/git/git.git
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
80d4e5f3a5
commit
4c7b06f208
|
@ -409,7 +409,7 @@ struct check_mergetag_data {
|
|||
const char **argv;
|
||||
};
|
||||
|
||||
static int check_one_mergetag(struct commit *commit,
|
||||
static int check_one_mergetag(struct commit *commit UNUSED,
|
||||
struct commit_extra_header *extra,
|
||||
void *data)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue