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 <ramsay@ramsay1.demon.co.uk> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ramsay Jones committed
Apr 27, 2013 at 19:39 UTC
85064630fcca70eae2ca28807b1770a833c3545f
1 file changed
+1
-1
builtin/clone.c
+1
-1
@@ -377,7 +377,7 @@ static void clone_local(const char *src_repo, const char *dest_repo)
377
static const char *junk_work_tree;
378
static const char *junk_git_dir;
379
static pid_t junk_pid;
380
-enum {
380
+static enum {
381
JUNK_LEAVE_NONE,
382
JUNK_LEAVE_REPO,
383
JUNK_LEAVE_ALL