]> git.ipfire.org Git - thirdparty/git.git/commit
apply: mark unused parameters in handlers
authorJeff King <peff@peff.net>
Tue, 18 Oct 2022 01:08:48 +0000 (21:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2022 04:24:04 +0000 (21:24 -0700)
commit0cff86990cbae9d5c8ca78cd09cb58f74828979b
tree87b013d0ac0c30a756197d1f8309eb0c3effb333
parent7829746a6ceca69813348331833b0b6940f41d54
apply: mark unused parameters in handlers

In parse_git_diff_header(), we have a table-driven parser that maps
strings to handler functions. Not all handlers need all of the
parameters; let's mark the unused ones to appease -Wunused-parameter.

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