From 57f5e6b2fb86a0430fbe06f825c26a52ebb839ce Mon Sep 17 00:00:00 2001 From: jiaweig <51759646+jiaweig-amzn@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:08:29 -0700 Subject: [PATCH] Apply maybe_unused to tracing only variable (#2217) Signed-off-by: jiaweig --- Gems/Atom/RHI/Vulkan/Code/Source/RHI/SwapChain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gems/Atom/RHI/Vulkan/Code/Source/RHI/SwapChain.cpp b/Gems/Atom/RHI/Vulkan/Code/Source/RHI/SwapChain.cpp index 0935e1acd8..330a78cb67 100644 --- a/Gems/Atom/RHI/Vulkan/Code/Source/RHI/SwapChain.cpp +++ b/Gems/Atom/RHI/Vulkan/Code/Source/RHI/SwapChain.cpp @@ -268,7 +268,7 @@ namespace AZ info.pImageIndices = &imageIndex; info.pResults = nullptr; - VkResult result = vkQueuePresentKHR(vulkanQueue->GetNativeQueue(), &info); + [[maybe_unused]] const VkResult result = vkQueuePresentKHR(vulkanQueue->GetNativeQueue(), &info); // Resizing window cause recreation of SwapChain after calling this method, // so VK_SUBOPTIMAL_KHR or VK_ERROR_OUT_OF_DATE_KHR should not happen at this point.