From 040e98dfc90b8c3197f4440aa772113327cb535f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 30 Apr 2020 17:27:55 +1000 Subject: Cleanup: unused variable warnings --- source/blender/blenlib/intern/task_pool.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib') 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 +} -- cgit v1.2.3