diff options
| author | Jeff King <peff@peff.net> | 2023-02-24 01:39:46 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 09:13:33 -0800 |
| commit | a5c76b3698f3672afecd65eed233b095123ae1d6 (patch) | |
| tree | 679277ec2632636910160ddf47bfafe2f4e8ed17 /submodule.c | |
| parent | userformat_want_item(): mark unused parameter (diff) | |
| download | git-a5c76b3698f3672afecd65eed233b095123ae1d6.tar.gz git-a5c76b3698f3672afecd65eed233b095123ae1d6.zip | |
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>
Diffstat (limited to 'submodule.c')
| -rw-r--r-- | submodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/submodule.c b/submodule.c index 3a0dfc417c..a24269db71 100644 --- a/submodule.c +++ b/submodule.c @@ -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; |
