From dfbe243b4ceefe5d17686f2c980cf1de09ee20e5 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Thu, 23 Jun 2022 19:38:38 +0200 Subject: [PATCH] Misc: Clean up warnings. Wsign-compare, Wunused-variable, Wunused-variable. --- pcsx2/CDVD/CDVD.cpp | 2 +- pcsx2/Frontend/VulkanHostDisplay.cpp | 2 +- pcsx2/GS/GSState.cpp | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pcsx2/CDVD/CDVD.cpp b/pcsx2/CDVD/CDVD.cpp index 3c7a1c81f3..55ab95e6b8 100644 --- a/pcsx2/CDVD/CDVD.cpp +++ b/pcsx2/CDVD/CDVD.cpp @@ -515,7 +515,7 @@ void cdvdReloadElfInfo(std::string elfoverride) // Recognized and PS2 (BOOT2). Good job, user. _reloadElfInfo(std::move(elfpath)); } - catch (Exception::FileNotFound& e) + catch ([[maybe_unused]] Exception::FileNotFound& e) { #ifdef PCSX2_CORE Console.Error("Failed to load ELF info"); diff --git a/pcsx2/Frontend/VulkanHostDisplay.cpp b/pcsx2/Frontend/VulkanHostDisplay.cpp index 2f21702aee..23b36445f1 100644 --- a/pcsx2/Frontend/VulkanHostDisplay.cpp +++ b/pcsx2/Frontend/VulkanHostDisplay.cpp @@ -128,7 +128,7 @@ bool VulkanHostDisplay::ChangeRenderWindow(const WindowInfo& new_wi) void VulkanHostDisplay::ResizeRenderWindow(s32 new_window_width, s32 new_window_height, float new_window_scale) { - if (m_swap_chain->GetWidth() == new_window_width && m_swap_chain->GetHeight() == new_window_height) + if (m_swap_chain->GetWidth() == static_cast(new_window_width) && m_swap_chain->GetHeight() == static_cast(new_window_height)) { // skip unnecessary resizes m_window_info.surface_scale = new_window_scale; diff --git a/pcsx2/GS/GSState.cpp b/pcsx2/GS/GSState.cpp index 4f6523efa4..7411f39690 100644 --- a/pcsx2/GS/GSState.cpp +++ b/pcsx2/GS/GSState.cpp @@ -1772,8 +1772,6 @@ inline bool GSState::TestDrawChanged() void GSState::FlushPrim() { - const u32 new_prim = PRIM->U32[0]; - if (m_index.tail > 0) { GL_REG("FlushPrim ctxt %d", PRIM->CTXT);