]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: mark unused parameters in hash_unknown functions
authorJeff King <peff@peff.net>
Tue, 18 Oct 2022 01:05:28 +0000 (21:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2022 04:24:03 +0000 (21:24 -0700)
commit9eb6cdadd155f93ff25c674050f218d3f21a5e82
tree7053f68a947011f0ddcece933ee226b3235f8eb6
parent808e91956d1db707643c7f68c2b8fcc6f38a2d80
object-file: mark unused parameters in hash_unknown functions

The 0'th entry of our hash_algos array fills out the virtual methods
with a series of functions which simply BUG(). This is the right thing
to do, since the point is to catch use of an invalid algo parameter, but
we need to annotate them to appease -Wunused-parameters.

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