diff --git a/source/blender/blenkernel/intern/main.cc b/source/blender/blenkernel/intern/main.cc index 8873b80c197..829e209f80d 100644 --- a/source/blender/blenkernel/intern/main.cc +++ b/source/blender/blenkernel/intern/main.cc @@ -49,7 +49,8 @@ Main::Main() { SpinLock *main_lock = MEM_mallocN("main lock"); BLI_spin_init(main_lock); - this->lock = reinterpret_cast(main_lock); + /* Use C-style cast to workaround an issue casting away volatile for builds without TBB. */ + this->lock = (MainLock *)main_lock; /* Just rebuilding the Action Slot to ID* map once is likely cheaper than, * for every ID, when it's loaded from disk, check whether it's animated or