diff options
author | Jeff King <peff@peff.net> | 2022-08-19 13:08:39 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-19 22:18:55 +0300 |
commit | f7d5741279ce8406a274f9de8ef4eeff5ca3f149 (patch) | |
tree | 9aceafbee3e9b96a48b719cc5e76c4e71624c9b4 /transport.c | |
parent | 7718827a2d4ec90c9cbdb7ec01f68065bdb52dc2 (diff) |
transport: mark bundle transport_options as unused
get_refs_from_bundle() is a virtual function which must match the
signature of other transports, but it doesn't look at its
transport_options at all. This isn't a bug, because not all transports
necessarily support all options. Let's mark it as unused to appease
-Wunused-parameter.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transport.c b/transport.c index b51e991e44..551cad22dd 100644 --- a/transport.c +++ b/transport.c @@ -142,7 +142,7 @@ static void get_refs_from_bundle_inner(struct transport *transport) static struct ref *get_refs_from_bundle(struct transport *transport, int for_push, - struct transport_ls_refs_options *transport_options) + struct transport_ls_refs_options *UNUSED(transport_options)) { struct bundle_transport_data *data = transport->data; struct ref *result = NULL; |