From bdefeaf6f96fe6da9a48508c3590c22a14699900 Mon Sep 17 00:00:00 2001 From: arabek Date: Thu, 11 Mar 2021 11:56:17 +0100 Subject: [PATCH] Use maybe_unused macro for chip var Var chip is only used in the WIN32 ifdef block - use maybe_unused to silence the compiler warning about unused variable. --- rpcs3/Emu/RSX/VK/VKDMA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKDMA.cpp b/rpcs3/Emu/RSX/VK/VKDMA.cpp index 09fa3c1f2f..7570bb902b 100644 --- a/rpcs3/Emu/RSX/VK/VKDMA.cpp +++ b/rpcs3/Emu/RSX/VK/VKDMA.cpp @@ -256,7 +256,7 @@ namespace vk void create_dma_block(std::unique_ptr& block, u32 base_address, usz expected_length) { const auto vendor = g_render_device->gpu().get_driver_vendor(); - const auto chip = g_render_device->gpu().get_chip_class(); + [[maybe_unused]] const auto chip = g_render_device->gpu().get_chip_class(); #ifdef _WIN32 bool allow_host_buffers;