aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/ls-tree.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-08-29 19:45:17 -0400
committerJunio C Hamano <gitster@pobox.com>2023-08-29 17:56:24 -0700
commite1cba404dbe54f2bf0511b3bd480c0e05fb65360 (patch)
treea94b15e4707abd372f443810edb0ab7e647aa1d6 /builtin/ls-tree.c
parentbbfc4f53b9622ba996c1cd083eaa6cb10d84f6d0 (diff)
downloadgit-e1cba404dbe54f2bf0511b3bd480c0e05fb65360.tar.gz
commit-graph: mark unused data parameters in generation callbacks
The compute_generation_info code uses function pointers to abstract the get/set generation operations. Some callers don't need the extra void data pointer, which should be annotated to appease -Wunused-parameter. Note that we can drop the assignment of the "data" parameter in compute_generation_numbers(), as we've just shown that neither of the callbacks it uses will access it. This matches the caller in ensure_generations_valid(), which already does not bother to set "data". Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-tree.c')
0 files changed, 0 insertions, 0 deletions