Skip to content

Commit 8506463

Browse files
Ramsay Jonesgitster
authored andcommitted
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 <[email protected]> Acked-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d3b3462 commit 8506463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static void clone_local(const char *src_repo, const char *dest_repo)
377377
static const char *junk_work_tree;
378378
static const char *junk_git_dir;
379379
static pid_t junk_pid;
380-
enum {
380+
static enum {
381381
JUNK_LEAVE_NONE,
382382
JUNK_LEAVE_REPO,
383383
JUNK_LEAVE_ALL

0 commit comments

Comments
 (0)