diff --git a/intern/ghost/intern/GHOST_ContextVK.cc b/intern/ghost/intern/GHOST_ContextVK.cc index 7defaed8ba3..8e00cf8ecda 100644 --- a/intern/ghost/intern/GHOST_ContextVK.cc +++ b/intern/ghost/intern/GHOST_ContextVK.cc @@ -1070,6 +1070,8 @@ GHOST_TSuccess GHOST_ContextVK::initializeDrawingContext() VK_KHR_GET_SURFACE_CAPABILITIES_2_EXTENSION_NAME); optional_device_extensions.push_back(VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME); } +#else + (void)contains_extension; #endif required_device_extensions.push_back(VK_KHR_SWAPCHAIN_EXTENSION_NAME); diff --git a/source/blender/gpu/opengl/gl_shader.cc b/source/blender/gpu/opengl/gl_shader.cc index 986deed2680..9fb114a1695 100644 --- a/source/blender/gpu/opengl/gl_shader.cc +++ b/source/blender/gpu/opengl/gl_shader.cc @@ -1772,7 +1772,7 @@ GLCompilerWorker *GLShaderCompiler::get_compiler_worker(const GLSourcesBaked &so GLCompilerWorker *result = nullptr; while (true) { - if (result = try_get_compiler_worker()) { + if ((result = try_get_compiler_worker())) { BLI_time_sleep_ms(1); break; }