commit-graph: mark unused data parameters in generation callbacks
commite1cba404dbe54f2bf0511b3bd480c0e05fb65360
authorJeff King <peff@peff.net>
Tue, 29 Aug 2023 23:45:17 +0000 (29 19:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Aug 2023 00:56:24 +0000 (29 17:56 -0700)
treea94b15e4707abd372f443810edb0ab7e647aa1d6
parentbbfc4f53b9622ba996c1cd083eaa6cb10d84f6d0
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>
commit-graph.c