]> git.ipfire.org Git - thirdparty/git.git/commit
ls-tree: mark unused parameter in callback
authorJeff King <peff@peff.net>
Tue, 29 Aug 2023 23:45:19 +0000 (19:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Aug 2023 00:56:24 +0000 (17:56 -0700)
commitc5cb97cbbf794df9279d408d22ef756504812135
treed032b0d21175d47135cee8c0f4e4e6b253f070d6
parente1cba404dbe54f2bf0511b3bd480c0e05fb65360
ls-tree: mark unused parameter in callback

The formatting functions are dispatched from a table of function
pointers. The "path name only" function unsurprisingly does not need to
look at its "oid" parameter, but we must mark it as unused to make
-Wunused-parameter happy.

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