summaryrefslogtreecommitdiff
path: root/reachable.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-03-17 21:03:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-03-17 21:03:09 (GMT)
commitd0732a8120d9cc62d8b6efa4ec48966f890f84b7 (patch)
treedbcfe3bfaac195410e72cf228e1ecc8f40bcd2d0 /reachable.c
parent88cc8ed8bc7d4bc9521b426e95ae2a38d3aec13a (diff)
parent506ebaac96b7d9a42853c16d0523fd493b7991da (diff)
downloadgit-d0732a8120d9cc62d8b6efa4ec48966f890f84b7.zip
git-d0732a8120d9cc62d8b6efa4ec48966f890f84b7.tar.gz
git-d0732a8120d9cc62d8b6efa4ec48966f890f84b7.tar.bz2
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 ...
Diffstat (limited to 'reachable.c')
-rw-r--r--reachable.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/reachable.c b/reachable.c
index be9d409..c9dab2a 100644
--- a/reachable.c
+++ b/reachable.c
@@ -49,7 +49,9 @@ static int add_one_ref(const char *path, const struct object_id *oid,
* The traversal will have already marked us as SEEN, so we
* only need to handle any progress reporting here.
*/
-static void mark_object(struct object *obj, const char *name, void *data)
+static void mark_object(struct object *obj UNUSED,
+ const char *name UNUSED,
+ void *data)
{
update_progress(data);
}
@@ -153,7 +155,8 @@ static int add_recent_loose(const struct object_id *oid,
}
static int add_recent_packed(const struct object_id *oid,
- struct packed_git *p, uint32_t pos,
+ struct packed_git *p,
+ uint32_t pos,
void *data)
{
struct object *obj;
@@ -203,10 +206,10 @@ int add_unseen_recent_objects_to_traversal(struct rev_info *revs,
static int mark_object_seen(const struct object_id *oid,
enum object_type type,
- int exclude,
- uint32_t name_hash,
- struct packed_git *found_pack,
- off_t found_offset)
+ int exclude UNUSED,
+ uint32_t name_hash UNUSED,
+ struct packed_git *found_pack UNUSED,
+ off_t found_offset UNUSED)
{
struct object *obj = lookup_object_by_type(the_repository, oid, type);
if (!obj)