Misc: Clean up warnings.

Wsign-compare, Wunused-variable, Wunused-variable.
This commit is contained in:
lightningterror 2022-06-23 19:38:38 +02:00
parent f7d76ebf1d
commit dfbe243b4c
3 changed files with 2 additions and 4 deletions

View File

@ -515,7 +515,7 @@ void cdvdReloadElfInfo(std::string elfoverride)
// Recognized and PS2 (BOOT2). Good job, user. // Recognized and PS2 (BOOT2). Good job, user.
_reloadElfInfo(std::move(elfpath)); _reloadElfInfo(std::move(elfpath));
} }
catch (Exception::FileNotFound& e) catch ([[maybe_unused]] Exception::FileNotFound& e)
{ {
#ifdef PCSX2_CORE #ifdef PCSX2_CORE
Console.Error("Failed to load ELF info"); Console.Error("Failed to load ELF info");

View File

@ -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) 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<u32>(new_window_width) && m_swap_chain->GetHeight() == static_cast<u32>(new_window_height))
{ {
// skip unnecessary resizes // skip unnecessary resizes
m_window_info.surface_scale = new_window_scale; m_window_info.surface_scale = new_window_scale;

View File

@ -1772,8 +1772,6 @@ inline bool GSState::TestDrawChanged()
void GSState::FlushPrim() void GSState::FlushPrim()
{ {
const u32 new_prim = PRIM->U32[0];
if (m_index.tail > 0) if (m_index.tail > 0)
{ {
GL_REG("FlushPrim ctxt %d", PRIM->CTXT); GL_REG("FlushPrim ctxt %d", PRIM->CTXT);