diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-05 22:03:59 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-05 22:07:49 +0000 |
commit | 0450e3134b543e047eb391e0a26bce760c62ebb1 (patch) | |
tree | 3942c3d843a5e8df57f1ee5721f4611b70a1eebb /tests/pack | |
parent | fe07ef8a1b4eae52421d81b28b327d0f55c338cf (diff) | |
download | libgit2-0450e3134b543e047eb391e0a26bce760c62ebb1.tar.gz |
tests: ifdef out unused function in no-thread builds
Diffstat (limited to 'tests/pack')
-rw-r--r-- | tests/pack/threadsafety.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pack/threadsafety.c b/tests/pack/threadsafety.c index 0b479788f..fd6a61fbd 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) { |