diff mbox series

[v3,3/4] graph.c: limit linkage of internal variable

Message ID 4e7580e1d1d844d0ed65e419fc039008740c4b7b.1587996766.git.congdanhqx@gmail.com (mailing list archive)
State New, archived
Headers show
Series Partial fix `make sparse` | expand

Commit Message

Đoàn Trần Công Danh April 27, 2020, 2:22 p.m. UTC
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
 graph.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/graph.c b/graph.c
index 4fb25ad464..4cd9915075 100644
--- a/graph.c
+++ b/graph.c
@@ -1055,7 +1055,7 @@  static void graph_output_commit_line(struct git_graph *graph, struct graph_line
 		graph_update_state(graph, GRAPH_COLLAPSING);
 }
 
-const char merge_chars[] = {'/', '|', '\\'};
+static const char merge_chars[] = {'/', '|', '\\'};
 
 static void graph_output_post_merge_line(struct git_graph *graph, struct graph_line *line)
 {