mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'jk/unused-post-2.39-part2'
More work towards -Wunused. * jk/unused-post-2.39-part2: (21 commits) help: mark unused parameter in git_unknown_cmd_config() run_processes_parallel: mark unused callback parameters userformat_want_item(): mark unused parameter for_each_commit_graft(): mark unused callback parameter rewrite_parents(): mark unused callback parameter fetch-pack: mark unused parameter in callback function notes: mark unused callback parameters prio-queue: mark unused parameters in comparison functions for_each_object: mark unused callback parameters list-objects: mark unused callback parameters mark unused parameters in signal handlers run-command: mark error routine parameters as unused mark "pointless" data pointers in callbacks ref-filter: mark unused callback parameters http-backend: mark unused parameters in virtual functions http-backend: mark argc/argv unused object-name: mark unused parameters in disambiguate callbacks serve: mark unused parameters in virtual functions serve: use repository pointer to get config ls-refs: drop config caching ...
This commit is contained in:
12
hook.c
12
hook.c
@@ -46,9 +46,9 @@ int hook_exists(const char *name)
|
||||
}
|
||||
|
||||
static int pick_next_hook(struct child_process *cp,
|
||||
struct strbuf *out,
|
||||
struct strbuf *out UNUSED,
|
||||
void *pp_cb,
|
||||
void **pp_task_cb)
|
||||
void **pp_task_cb UNUSED)
|
||||
{
|
||||
struct hook_cb_data *hook_cb = pp_cb;
|
||||
const char *hook_path = hook_cb->hook_path;
|
||||
@@ -80,9 +80,9 @@ static int pick_next_hook(struct child_process *cp,
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int notify_start_failure(struct strbuf *out,
|
||||
static int notify_start_failure(struct strbuf *out UNUSED,
|
||||
void *pp_cb,
|
||||
void *pp_task_cp)
|
||||
void *pp_task_cp UNUSED)
|
||||
{
|
||||
struct hook_cb_data *hook_cb = pp_cb;
|
||||
|
||||
@@ -92,9 +92,9 @@ static int notify_start_failure(struct strbuf *out,
|
||||
}
|
||||
|
||||
static int notify_hook_finished(int result,
|
||||
struct strbuf *out,
|
||||
struct strbuf *out UNUSED,
|
||||
void *pp_cb,
|
||||
void *pp_task_cb)
|
||||
void *pp_task_cb UNUSED)
|
||||
{
|
||||
struct hook_cb_data *hook_cb = pp_cb;
|
||||
struct run_hooks_opt *opt = hook_cb->options;
|
||||
|
||||
Reference in New Issue
Block a user