From def2db3bdbbb99d3d0b245dc5bea656733e3bf53 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Jul 2025 18:34:59 +1000 Subject: [PATCH] Build: resolve error building without TBB --- source/blender/blenkernel/intern/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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