diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp index 672d581151..9787734d9e 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.cpp +++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp @@ -125,7 +125,7 @@ void OpenALStream::SoundLoop() { soundCriticalSection.Enter(); int numBytesToRender = 32768; //ya, this is a hack, we need real data count - int numBytesRender = m_mixer->Mix(realtimeBuffer, numBytesToRender >> 2); + /*int numBytesRender =*/ m_mixer->Mix(realtimeBuffer, numBytesToRender >> 2); soundCriticalSection.Leave(); //if (numBytesRender) //here need debug diff --git a/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp b/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp index 286e0eeebe..f4f953acd2 100644 --- a/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp +++ b/Source/Core/Core/Src/HW/BBA-TAP/TAP_Unix.cpp @@ -85,7 +85,6 @@ bool CEXIETHERNET::CheckRecieved() { if(!isActivated()) return false; - int i; int maxfd; int retval; struct timeval tv; @@ -151,7 +150,7 @@ THREAD_RETURN CpuThread(void *pArg) //strncat(mRecvBuffer.p(), B, BytesRead); memcpy(self->mRecvBuffer, B, self->mRecvBufferLength); } - else if(self->mRecvBufferLength == -1) + else if(self->mRecvBufferLength == -1U) { continue; } diff --git a/Source/Core/Core/Src/HW/CPU.cpp b/Source/Core/Core/Src/HW/CPU.cpp index 5b29231d3d..b20a8d2a76 100644 --- a/Source/Core/Core/Src/HW/CPU.cpp +++ b/Source/Core/Core/Src/HW/CPU.cpp @@ -25,7 +25,6 @@ namespace { - static bool g_Branch; static Common::Event m_StepEvent; static Common::Event *m_SyncEvent; } diff --git a/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp b/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp index f3f2c716ce..3be36f8332 100644 --- a/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp +++ b/Source/Core/Core/Src/HW/SI_DeviceGCController.cpp @@ -126,12 +126,12 @@ bool CSIDevice_GCController::GetData(u32& _Hi, u32& _Low) { SPADStatus PadStatus; - u32 netValues[2] = {0}; memset(&PadStatus, 0, sizeof(PadStatus)); Common::PluginPAD* pad = CPluginManager::GetInstance().GetPad(ISIDevice::m_iDeviceNumber); pad->PAD_GetStatus(ISIDevice::m_iDeviceNumber, &PadStatus); #if defined(HAVE_SFML) && HAVE_SFML + u32 netValues[2] = {0}; int NetPlay = GetNetInput(ISIDevice::m_iDeviceNumber, PadStatus, netValues); if (NetPlay != 2) diff --git a/Source/Core/Core/Src/HW/StreamADPCM.cpp b/Source/Core/Core/Src/HW/StreamADPCM.cpp index 57526905a3..80fbb69d6a 100644 --- a/Source/Core/Core/Src/HW/StreamADPCM.cpp +++ b/Source/Core/Core/Src/HW/StreamADPCM.cpp @@ -16,7 +16,7 @@ short ADPDecodeSample(int bits, int q, int *hist1p, int *hist2p) const int hist1 = *hist1p; const int hist2 = *hist2p; - int hist; + int hist = 0; switch (q >> 4) { case 0: diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_stm.h b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_stm.h index 9c44f2e8e3..23df18e194 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_stm.h +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_stm.h @@ -202,7 +202,7 @@ public: } // Write return value to the IPC call, 0 means success - Memory::Write_U32(0, _CommandAddress + 0x4); + Memory::Write_U32(ReturnValue, _CommandAddress + 0x4); // Generate true or false reply for the main UpdateInterrupts() function return false;