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:
committed by
Junio C Hamano
parent
1bff855419
commit
a5c76b3698
@ -1739,7 +1739,7 @@ static int get_next_submodule(struct child_process *cp, struct strbuf *err,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fetch_start_failure(struct strbuf *err,
|
||||
static int fetch_start_failure(struct strbuf *err UNUSED,
|
||||
void *cb, void *task_cb)
|
||||
{
|
||||
struct submodule_parallel_fetch *spf = cb;
|
||||
@ -1760,7 +1760,7 @@ static int commit_missing_in_sub(const struct object_id *oid, void *data)
|
||||
return type != OBJ_COMMIT;
|
||||
}
|
||||
|
||||
static int fetch_finish(int retvalue, struct strbuf *err,
|
||||
static int fetch_finish(int retvalue, struct strbuf *err UNUSED,
|
||||
void *cb, void *task_cb)
|
||||
{
|
||||
struct submodule_parallel_fetch *spf = cb;
|
||||
|
||||
Reference in New Issue
Block a user