run_processes_parallel: mark unused callback parameters

Our parallel process API takes several callbacks via function pointers
in the run_process_paralell_opts struct. Not every callback needs every
parameter; let's mark the unused ones to make -Wunused-parameter happy.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King
2023-02-24 01:39:46 -05:00
committed by Junio C Hamano
parent 1bff855419
commit a5c76b3698
5 changed files with 21 additions and 19 deletions

View File

@ -1890,7 +1890,8 @@ struct parallel_fetch_state {
int next, result;
};
static int fetch_next_remote(struct child_process *cp, struct strbuf *out,
static int fetch_next_remote(struct child_process *cp,
struct strbuf *out UNUSED,
void *cb, void **task_cb)
{
struct parallel_fetch_state *state = cb;
@ -1912,7 +1913,8 @@ static int fetch_next_remote(struct child_process *cp, struct strbuf *out,
return 1;
}
static int fetch_failed_to_start(struct strbuf *out, void *cb, void *task_cb)
static int fetch_failed_to_start(struct strbuf *out UNUSED,
void *cb, void *task_cb)
{
struct parallel_fetch_state *state = cb;
const char *remote = task_cb;