]> git.ipfire.org Git - thirdparty/git.git/commitdiff
transport: mark bundle transport_options as unused
authorJeff King <peff@peff.net>
Fri, 19 Aug 2022 10:08:39 +0000 (06:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 19:18:55 +0000 (12:18 -0700)
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>
transport.c

index b51e991e4439467c3cb2fc15381c259e135f5139..551cad22dd36e56e5ea731c5dee9916df640fda4 100644 (file)
@@ -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;