From: Ramsay Jones Date: Wed, 28 Aug 2013 18:56:17 +0000 (+0100) Subject: builtin/fetch.c: Fix a sparse warning X-Git-Tag: v1.8.4.1~11^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0f73f8bd7974fcf7f9e4608875323c96c6159829?ds=inline;hp=--cc 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 Signed-off-by: Junio C Hamano --- 0f73f8bd7974fcf7f9e4608875323c96c6159829 diff --git a/builtin/fetch.c b/builtin/fetch.c index 57ab7e4d63..564705555b 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -734,7 +734,7 @@ static void set_option(struct transport *transport, const char *name, const char name, transport->url); } -struct transport *prepare_transport(struct remote *remote) +static struct transport *prepare_transport(struct remote *remote) { struct transport *transport; transport = transport_get(remote, NULL);