Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-04-30 10:27:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-04-30 10:28:28 +0300
commit040e98dfc90b8c3197f4440aa772113327cb535f (patch)
tree8ab7bdfbf8bc2079c9e930193dd33c841552bee0 /source/blender/blenlib
parentd8a3f3595af0fb3ca5937e41c2728fd750d986ef (diff)
Cleanup: unused variable warnings
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/task_pool.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/task_pool.cc b/source/blender/blenlib/intern/task_pool.cc
index da67412865b..b0d7df92343 100644
--- a/source/blender/blenlib/intern/task_pool.cc
+++ b/source/blender/blenlib/intern/task_pool.cc
@@ -173,6 +173,8 @@ static void tbb_task_pool_create(TaskPool *pool, TaskPriority priority)
if (pool->use_threads) {
new (&pool->tbb_group) TBBTaskGroup(priority);
}
+#else
+ UNUSED_VARS(priority);
#endif
}
@@ -234,6 +236,8 @@ static void tbb_task_pool_cancel(TaskPool *pool)
pool->tbb_group.cancel();
pool->tbb_group.wait();
}
+#else
+ UNUSED_VARS(pool);
#endif
}
@@ -243,6 +247,8 @@ static bool tbb_task_pool_canceled(TaskPool *pool)
if (pool->use_threads) {
return pool->tbb_group.is_canceling();
}
+#else
+ UNUSED_VARS(pool);
#endif
return false;
@@ -521,4 +527,4 @@ void *BLI_task_pool_user_data(TaskPool *pool)
ThreadMutex *BLI_task_pool_user_mutex(TaskPool *pool)
{
return &pool->user_mutex;
-} \ No newline at end of file
+}