diff --git a/core/object/worker_thread_pool.cpp b/core/object/worker_thread_pool.cpp index efd8c6968013..56b9fa847567 100644 --- a/core/object/worker_thread_pool.cpp +++ b/core/object/worker_thread_pool.cpp @@ -83,7 +83,9 @@ void WorkerThreadPool::_process_task(Task *p_task) { } #endif +#ifdef THREADS_ENABLED bool low_priority = p_task->low_priority; +#endif if (p_task->group) { // Handling a group