diff --git a/filament/backend/src/vulkan/VulkanCommands.cpp b/filament/backend/src/vulkan/VulkanCommands.cpp index e62f760a65f..97a88cfb54b 100644 --- a/filament/backend/src/vulkan/VulkanCommands.cpp +++ b/filament/backend/src/vulkan/VulkanCommands.cpp @@ -244,7 +244,8 @@ VkSemaphore VulkanCommandBuffer::submit() { #endif mFenceStatus->setStatus(VK_NOT_READY); - VkResult result = vkQueueSubmit(mQueue, 1, &submitInfo, mFence); + UTILS_UNUSED_IN_RELEASE VkResult result = + vkQueueSubmit(mQueue, 1, &submitInfo, mFence); #if FVK_ENABLED(FVK_DEBUG_COMMAND_BUFFER) if (result != VK_SUCCESS) {