Cleanup: quiet missing parenthesis & unused function warnings

This commit is contained in:
Campbell Barton
2025-05-09 02:13:33 +00:00
parent a03d0fd512
commit 2cd2f2ea4d
2 changed files with 3 additions and 1 deletions

View File

@@ -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);

View File

@@ -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;
}