Skip to content

Commit 0450e31

Browse files
committed
tests: ifdef out unused function in no-thread builds
1 parent fe07ef8 commit 0450e31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/pack/threadsafety.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ void test_pack_threadsafety__cleanup(void)
2020
cl_git_pass(git_libgit2_opts(GIT_OPT_SET_MWINDOW_FILE_LIMIT, original_mwindow_file_limit));
2121
}
2222

23+
#ifdef GIT_THREADS
2324
static void *get_status(void *arg)
2425
{
2526
const char *repo_path = (const char *)arg;
@@ -33,6 +34,7 @@ static void *get_status(void *arg)
3334

3435
return NULL;
3536
}
37+
#endif
3638

3739
void test_pack_threadsafety__open_repo_in_multiple_threads(void)
3840
{

0 commit comments

Comments
 (0)