[Bf-blender-cvs] [040e98dfc90] master: Cleanup: unused variable warnings

Campbell Barton noreply at git.blender.org
Thu Apr 30 09:29:15 CEST 2020


Commit: 040e98dfc90b8c3197f4440aa772113327cb535f
Author: Campbell Barton
Date:   Thu Apr 30 17:27:55 2020 +1000
Branches: master
https://developer.blender.org/rB040e98dfc90b8c3197f4440aa772113327cb535f

Cleanup: unused variable warnings

===================================================================

M	source/blender/blenlib/intern/task_pool.cc

===================================================================

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
+}



More information about the Bf-blender-cvs mailing list