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:
@ -3442,8 +3442,8 @@ void reset_revision_walk(void)
|
||||
}
|
||||
|
||||
static int mark_uninteresting(const struct object_id *oid,
|
||||
struct packed_git *pack,
|
||||
uint32_t pos,
|
||||
struct packed_git *pack UNUSED,
|
||||
uint32_t pos UNUSED,
|
||||
void *cb)
|
||||
{
|
||||
struct rev_info *revs = cb;
|
||||
@ -4161,7 +4161,7 @@ static struct commit *get_revision_1(struct rev_info *revs)
|
||||
* Return true for entries that have not yet been shown. (This is an
|
||||
* object_array_each_func_t.)
|
||||
*/
|
||||
static int entry_unshown(struct object_array_entry *entry, void *cb_data_unused)
|
||||
static int entry_unshown(struct object_array_entry *entry, void *cb_data UNUSED)
|
||||
{
|
||||
return !(entry->item->flags & SHOWN);
|
||||
}
|
||||
|
Reference in New Issue
Block a user