Skip to content

Commit 0f73f8b

Browse files
Ramsay Jonesgitster
authored andcommitted
builtin/fetch.c: Fix a sparse warning
Sparse issues an "'prepare_transport' was not declared. Should it be static?" warning. In order to suppress the warning, since this symbol only requires file scope, we simply add the static modifier to it's declaration. Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b26ed43 commit 0f73f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/fetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ static void set_option(struct transport *transport, const char *name, const char
734734
name, transport->url);
735735
}
736736

737-
struct transport *prepare_transport(struct remote *remote)
737+
static struct transport *prepare_transport(struct remote *remote)
738738
{
739739
struct transport *transport;
740740
transport = transport_get(remote, NULL);

0 commit comments

Comments
 (0)