diff --git a/pcsx2/USB/usb-pad/dx/dinput-config.cpp b/pcsx2/USB/usb-pad/dx/dinput-config.cpp index 935e93082a..b3f846cb20 100644 --- a/pcsx2/USB/usb-pad/dx/dinput-config.cpp +++ b/pcsx2/USB/usb-pad/dx/dinput-config.cpp @@ -563,7 +563,6 @@ namespace usb_pad // Get source bits int srcWidth = scale * pwidth; - int srcHeight = scale * pheight; int srcPitch = srcWidth * 4; int srcSize = srcWidth * srcPitch; BYTE* lpSrcBits = new BYTE[srcSize]; diff --git a/pcsx2/USB/usb-pad/raw/raw-config.cpp b/pcsx2/USB/usb-pad/raw/raw-config.cpp index 680d4d2bd1..b5c3be7426 100644 --- a/pcsx2/USB/usb-pad/raw/raw-config.cpp +++ b/pcsx2/USB/usb-pad/raw/raw-config.cpp @@ -51,8 +51,7 @@ namespace usb_pad { maps.clear(); - WCHAR sec[1024] = {0}, bind[32] = {0}; - int v = 0; + WCHAR bind[32] = {0}; for (int j = 0; j < 25; j++) { std::wstring hid, tmp; diff --git a/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp b/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp index 4cfd9d579d..d8cef35aec 100644 --- a/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp +++ b/pcsx2/USB/usb-pad/raw/usb-pad-raw.cpp @@ -25,7 +25,7 @@ namespace usb_pad void RawInputPad::WriterThread(void* ptr) { - DWORD res = 0, res2 = 0, written = 0; + DWORD written = 0; std::array buf; RawInputPad* pad = static_cast(ptr); @@ -35,7 +35,7 @@ namespace usb_pad { if (pad->mFFData.wait_dequeue_timed(buf, std::chrono::milliseconds(1000))) { - res = WriteFile(pad->mUsbHandle, buf.data(), buf.size(), &written, &pad->mOLWrite); + const DWORD res = WriteFile(pad->mUsbHandle, buf.data(), buf.size(), &written, &pad->mOLWrite); uint8_t* d = buf.data(); WaitForSingleObject(pad->mOLWrite.hEvent, 1000); @@ -48,7 +48,7 @@ namespace usb_pad void RawInputPad::ReaderThread(void* ptr) { RawInputPad* pad = static_cast(ptr); - DWORD res = 0, res2 = 0, read = 0; + DWORD read = 0; std::array report; //32 is random pad->mReaderThreadIsRunning = true; @@ -75,8 +75,7 @@ namespace usb_pad int RawInputPad::TokenIn(uint8_t* buf, int len) { - ULONG value = 0; - int player = 1 - mPort; + const int player = 1 - mPort; //Console.Warning("usb-pad: poll len=%li\n", len); if (mDoPassthrough)