Apply maybe_unused to tracing only variable (#2217)

Signed-off-by: jiaweig <jiaweig@amazon.com>
This commit is contained in:
jiaweig
2021-07-16 13:08:29 -07:00
committed by GitHub
parent bb5e9503dd
commit 57f5e6b2fb
@@ -268,7 +268,7 @@ namespace AZ
info.pImageIndices = &imageIndex; info.pImageIndices = &imageIndex;
info.pResults = nullptr; 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, // 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. // so VK_SUBOPTIMAL_KHR or VK_ERROR_OUT_OF_DATE_KHR should not happen at this point.