Skip to content

Commit f7d5741

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7718827 commit f7d5741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void get_refs_from_bundle_inner(struct transport *transport)
142142

143143
static struct ref *get_refs_from_bundle(struct transport *transport,
144144
int for_push,
145-
struct transport_ls_refs_options *transport_options)
145+
struct transport_ls_refs_options *UNUSED(transport_options))
146146
{
147147
struct bundle_transport_data *data = transport->data;
148148
struct ref *result = NULL;

0 commit comments

Comments
 (0)