]> git.ipfire.org Git - thirdparty/git.git/commit - reachable.c
list-objects: mark unused callback parameters
authorJeff King <peff@peff.net>
Fri, 24 Feb 2023 06:39:22 +0000 (01:39 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2023 17:13:31 +0000 (09:13 -0800)
commitc50dca2a18077306eb6796938d3d01c76590b4c6
tree56b47fa0f7232df4b5b68b04ac48d8f802ce774e
parent9ec03b59a8c4f5a0b4e666bd179a8eed71484825
list-objects: mark unused callback parameters

Our graph-traversal functions take callbacks for showing commits and
objects, but not all callbacks need each parameter.  Likewise for the
similar traverse_bitmap_commit_list(), which has a different interface
but serves the same purpose. And the include_check mechanism, which
passes along a void pointer which is not always used.

Mark the unused ones to to make -Wunused-parameter happy.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
builtin/rev-list.c
pack-bitmap.c
reachable.c