]> git.ipfire.org Git - thirdparty/git.git/commit
gc: mark unused descriptors in scheduler callbacks
authorJeff King <peff@peff.net>
Tue, 29 Aug 2023 23:45:40 +0000 (19:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Aug 2023 00:56:26 +0000 (17:56 -0700)
commit316b3a226a16f52fb152d8869aa71233ce47768d
treeaf6165892ba09924ac959708f5d3b7b0faed7165
parentfd3fe4914a59df93aeb67572d8932d2ae4cedb0d
gc: mark unused descriptors in scheduler callbacks

Each of the scheduler update callbacks gets the descriptor of the lock
file, but only the crontab updater needs it. We have to retain the
unused descriptors because these are dispatched from a table of function
pointers, but we should mark them to silence -Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c