summaryrefslogtreecommitdiff
path: root/tests-clar/object/cache.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-22 16:53:46 +0200
committerVicent Marti <tanoku@gmail.com>2013-04-22 16:53:46 +0200
commitcf9709b64eb49d5a0ee1181b80c950e518fb45b0 (patch)
tree93f7372ca6586d4a8833bdf9747530293dd9e6c9 /tests-clar/object/cache.c
parent865e2dd4440596d7cd874556a694eea30336c69b (diff)
downloadlibgit2-cf9709b64eb49d5a0ee1181b80c950e518fb45b0.tar.gz
tests: Do not warn for unused variable
Diffstat (limited to 'tests-clar/object/cache.c')
-rw-r--r--tests-clar/object/cache.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests-clar/object/cache.c b/tests-clar/object/cache.c
index ed13a6fa8..b36bf2726 100644
--- a/tests-clar/object/cache.c
+++ b/tests-clar/object/cache.c
@@ -195,10 +195,13 @@ static void *cache_raw(void *arg)
void test_object_cache__threadmania(void)
{
int try, th, max_i;
- git_thread t[THREADCOUNT];
void *data;
void *(*fn)(void *);
+#ifdef GIT_THREADS
+ git_thread t[THREADCOUNT];
+#endif
+
for (max_i = 0; g_data[max_i].sha != NULL; ++max_i)
/* count up */;