From: Ramsay Jones Date: Sat, 27 Apr 2013 18:39:04 +0000 (+0100) Subject: clone: Make the 'junk_mode' symbol a file static X-Git-Tag: v1.8.3-rc1~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85064630fcca70eae2ca28807b1770a833c3545f;p=thirdparty%2Fgit.git clone: Make the 'junk_mode' symbol a file static Sparse issues an "'junk_mode' not declared. Should it be static?" warning. In order to suppress the warning, since this symbol does not need more than file visibility, we simply add the static modifier to its declaration. Signed-off-by: Ramsay Jones Acked-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/builtin/clone.c b/builtin/clone.c index f9c380eb6c..2238ae8286 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -377,7 +377,7 @@ static void clone_local(const char *src_repo, const char *dest_repo) static const char *junk_work_tree; static const char *junk_git_dir; static pid_t junk_pid; -enum { +static enum { JUNK_LEAVE_NONE, JUNK_LEAVE_REPO, JUNK_LEAVE_ALL