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

Campbell Barton noreply at git.blender.org
Mon May 25 13:04:04 CEST 2020


Commit: dc3f404a704aaa9af497ff6eae8340d00253c4c9
Author: Campbell Barton
Date:   Mon May 25 21:03:45 2020 +1000
Branches: master
https://developer.blender.org/rBdc3f404a704aaa9af497ff6eae8340d00253c4c9

Cleanup: unused variable warnings

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

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

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

diff --git a/source/blender/blenlib/intern/task_graph.cc b/source/blender/blenlib/intern/task_graph.cc
index 9a7f18c8348..4f112c5b2c8 100644
--- a/source/blender/blenlib/intern/task_graph.cc
+++ b/source/blender/blenlib/intern/task_graph.cc
@@ -76,6 +76,9 @@ struct TaskNode {
         task_data(task_data),
         free_func(free_func)
   {
+#ifndef WITH_TBB
+    UNUSED_VARS(task_graph);
+#endif
   }
 
   TaskNode(const TaskNode &other) = delete;
@@ -123,6 +126,8 @@ void BLI_task_graph_work_and_wait(TaskGraph *task_graph)
 {
 #ifdef WITH_TBB
   task_graph->tbb_graph.wait_for_all();
+#else
+  UNUSED_VARS(task_graph);
 #endif
 }



More information about the Bf-blender-cvs mailing list