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-05-25 14:03:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-05-25 14:03:45 +0300
commitdc3f404a704aaa9af497ff6eae8340d00253c4c9 (patch)
tree7f563b23cb7b468a2ea3930c67370618b56e2899 /source/blender/blenlib/intern/task_graph.cc
parent3c40d2485ffcf6db2832f5306edcb4fb05dfb924 (diff)
Cleanup: unused variable warnings
Diffstat (limited to 'source/blender/blenlib/intern/task_graph.cc')
-rw-r--r--source/blender/blenlib/intern/task_graph.cc5
1 files changed, 5 insertions, 0 deletions
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
}