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 <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramsay Jones committed
Aug 28, 2013 at 19:56 UTC
0f73f8bd7974fcf7f9e4608875323c96c6159829
1 file changed
+1
-1
builtin/fetch.c
+1
-1
@@ -734,7 +734,7 @@ static void set_option(struct transport *transport, const char *name, const char
734
name, transport->url);
735
}
736
737
-struct transport *prepare_transport(struct remote *remote)
737
+static struct transport *prepare_transport(struct remote *remote)
738
{
739
struct transport *transport;
740
transport = transport_get(remote, NULL);