]> git.ipfire.org Git - thirdparty/git.git/commit
http-backend: mark unused parameters in virtual functions
authorJeff King <peff@peff.net>
Fri, 24 Feb 2023 06:38:43 +0000 (01:38 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2023 17:13:30 +0000 (09:13 -0800)
commit2be1506a788a24e87ba4b53a1654c9ff40402750
tree99efd32eeea1e614143aa6381c9bd99899a6a142
parent77ef8b0e1e9e9e70aa8756b45ed12a190a3bcc91
http-backend: mark unused parameters in virtual functions

The http-backend dispatches requests via a table of virtual functions.
Some of the functions ignore their "arg" parameter, because it's
implicit in the function (e.g., get_info_refs knows that it is
dispatched only for a request to "/info/refs").

Mark these unused parameters to silence -Wunused-parameter.

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