]> git.ipfire.org Git - thirdparty/git.git/commit
parse-options: mark unused parameters in noop callback
authorJeff King <peff@peff.net>
Thu, 31 Aug 2023 21:22:20 +0000 (17:22 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Sep 2023 21:48:17 +0000 (14:48 -0700)
commit0058b3d5eedcf5777712e872e01f74bf8d933be7
treedff66cf6450b7607d378e69bc04f9dc26b710c0c
parentd775365db321c9f05c12809438d3c801d7e445af
parse-options: mark unused parameters in noop callback

Unsurprisingly, the noop options callback doesn't bother to look at any
of its parameters. Let's mark them so that -Wunused-parameter does not
complain.

Another option would be to drop the callback and have parse-options
itself recognize OPT_NOOP_NOARG. But that seems like extra work for no
real benefit.

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