Commit 0450e3134b543e047eb391e0a26bce760c62ebb1

Edward Thomson 2020-12-05T22:03:59

tests: ifdef out unused function in no-thread builds

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/tests/pack/threadsafety.c b/tests/pack/threadsafety.c
index 0b47978..fd6a61f 100644
--- a/tests/pack/threadsafety.c
+++ b/tests/pack/threadsafety.c
@@ -20,6 +20,7 @@ void test_pack_threadsafety__cleanup(void)
 	cl_git_pass(git_libgit2_opts(GIT_OPT_SET_MWINDOW_FILE_LIMIT, original_mwindow_file_limit));
 }
 
+#ifdef GIT_THREADS
 static void *get_status(void *arg)
 {
 	const char *repo_path = (const char *)arg;
@@ -33,6 +34,7 @@ static void *get_status(void *arg)
 
 	return NULL;
 }
+#endif
 
 void test_pack_threadsafety__open_repo_in_multiple_threads(void)
 {