Skip to content

Commit

Permalink
builtin/fetch.c: Fix a sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ramsay Jones authored and Junio C Hamano committed Aug 28, 2013
1 parent b26ed43 commit 0f73f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f73f8b

Please sign in to comment.