@@ -967,7 +967,7 @@ static int dfs_on_ref(const char *refname UNUSED,
967967 return result ;
968968}
969969
970- static int should_write_commit_graph (struct gc_config * cfg )
970+ static int should_write_commit_graph (struct gc_config * cfg UNUSED )
971971{
972972 int result ;
973973 struct cg_auto_data data ;
@@ -1005,7 +1005,7 @@ static int run_write_commit_graph(struct maintenance_run_opts *opts)
10051005}
10061006
10071007static int maintenance_task_commit_graph (struct maintenance_run_opts * opts ,
1008- struct gc_config * cfg )
1008+ struct gc_config * cfg UNUSED )
10091009{
10101010 prepare_repo_settings (the_repository );
10111011 if (!the_repository -> settings .core_commit_graph )
@@ -1040,7 +1040,7 @@ static int fetch_remote(struct remote *remote, void *cbdata)
10401040}
10411041
10421042static int maintenance_task_prefetch (struct maintenance_run_opts * opts ,
1043- struct gc_config * cfg )
1043+ struct gc_config * cfg UNUSED )
10441044{
10451045 if (for_each_remote (fetch_remote , opts )) {
10461046 error (_ ("failed to prefetch remotes" ));
@@ -1051,7 +1051,7 @@ static int maintenance_task_prefetch(struct maintenance_run_opts *opts,
10511051}
10521052
10531053static int maintenance_task_gc (struct maintenance_run_opts * opts ,
1054- struct gc_config * cfg )
1054+ struct gc_config * cfg UNUSED )
10551055{
10561056 struct child_process child = CHILD_PROCESS_INIT ;
10571057
@@ -1100,7 +1100,7 @@ static int loose_object_count(const struct object_id *oid UNUSED,
11001100 return 0 ;
11011101}
11021102
1103- static int loose_object_auto_condition (struct gc_config * cfg )
1103+ static int loose_object_auto_condition (struct gc_config * cfg UNUSED )
11041104{
11051105 int count = 0 ;
11061106
@@ -1192,12 +1192,12 @@ static int pack_loose(struct maintenance_run_opts *opts)
11921192}
11931193
11941194static int maintenance_task_loose_objects (struct maintenance_run_opts * opts ,
1195- struct gc_config * cfg )
1195+ struct gc_config * cfg UNUSED )
11961196{
11971197 return prune_packed (opts ) || pack_loose (opts );
11981198}
11991199
1200- static int incremental_repack_auto_condition (struct gc_config * cfg )
1200+ static int incremental_repack_auto_condition (struct gc_config * cfg UNUSED )
12011201{
12021202 struct packed_git * p ;
12031203 int incremental_repack_auto_limit = 10 ;
@@ -1317,7 +1317,7 @@ static int multi_pack_index_repack(struct maintenance_run_opts *opts)
13171317}
13181318
13191319static int maintenance_task_incremental_repack (struct maintenance_run_opts * opts ,
1320- struct gc_config * cfg )
1320+ struct gc_config * cfg UNUSED )
13211321{
13221322 prepare_repo_settings (the_repository );
13231323 if (!the_repository -> settings .core_multi_pack_index ) {
0 commit comments