summaryrefslogtreecommitdiff
path: root/tests-clar/threads/refdb.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-11-01 17:08:32 +0100
committerVicent Marti <tanoku@gmail.com>2013-11-01 17:36:09 +0100
commitd3ed2106c137c1117f70499544868db21d9ea715 (patch)
tree70cce1416180b662a92383ac0d09c7175be2115b /tests-clar/threads/refdb.c
parent0bfa73234263de03e5f797c2f4c514def145433a (diff)
downloadlibgit2-vmg/gcc-warnings.tar.gz
clar: Fix warnings in GCC/Linuxvmg/gcc-warnings
Diffstat (limited to 'tests-clar/threads/refdb.c')
-rw-r--r--tests-clar/threads/refdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests-clar/threads/refdb.c b/tests-clar/threads/refdb.c
index f8d76cb9b..3c651e341 100644
--- a/tests-clar/threads/refdb.c
+++ b/tests-clar/threads/refdb.c
@@ -147,13 +147,16 @@ static void *delete_refs(void *arg)
void test_threads_refdb__edit_while_iterate(void)
{
int r, t;
- git_thread th[THREADS];
int id[THREADS];
git_oid head;
git_reference *ref;
char name[128];
git_refdb *refdb;
+#ifdef GIT_THREADS
+ git_thread th[THREADS];
+#endif
+
g_repo = cl_git_sandbox_init("testrepo2");
cl_git_pass(git_reference_name_to_id(&head, g_repo, "HEAD"));
@@ -187,7 +190,6 @@ void test_threads_refdb__edit_while_iterate(void)
#ifdef GIT_THREADS
cl_git_pass(git_thread_create(&th[t], NULL, fn, &id[t]));
#else
- th[t] = t;
fn(&id[t]);
#endif
}