diff --git a/Source/Core/Core/Src/HW/AudioInterface.cpp b/Source/Core/Core/Src/HW/AudioInterface.cpp index edfb20b741..4ceba760c8 100644 --- a/Source/Core/Core/Src/HW/AudioInterface.cpp +++ b/Source/Core/Core/Src/HW/AudioInterface.cpp @@ -293,7 +293,7 @@ unsigned int Callback_GetStreaming(short* _pDestBuffer, unsigned int _numSamples PanicAlert("AUDIO_INTERFACE: Up-sampling is not implemented yet!"); } - int pcm_l, pcm_r; + int pcm_l = 0, pcm_r = 0; for (unsigned int i = 0; i < _numSamples; i++) { if (pos == 0) diff --git a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp index d66328772c..19115e1020 100644 --- a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp +++ b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp @@ -127,7 +127,7 @@ void fctiwx(UGeckoInstruction _inst) } else { - s32 i; + s32 i = 0; switch (FPSCR.RN) { case 0: // nearest diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL_LoadStore.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL_LoadStore.cpp index b82702037e..890c3241c7 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL_LoadStore.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/JitIL_LoadStore.cpp @@ -199,4 +199,4 @@ void JitIL::icbi(UGeckoInstruction inst) { Default(inst); ibuild.EmitBranchUncond(ibuild.EmitIntConst(js.compilerPC + 4)); -} \ No newline at end of file +} diff --git a/Source/Core/DSPCore/Src/DSPAccelerator.cpp b/Source/Core/DSPCore/Src/DSPAccelerator.cpp index fa61651df5..d4edcbbacf 100644 --- a/Source/Core/DSPCore/Src/DSPAccelerator.cpp +++ b/Source/Core/DSPCore/Src/DSPAccelerator.cpp @@ -146,7 +146,7 @@ u16 dsp_read_accelerator() break; default: ERROR_LOG(DSPLLE, "Unknown DSP Format %x", g_dsp.ifx_regs[DSP_FORMAT]); - break; + val = 0; } // TODO: Take GAIN into account, whatever it is. diff --git a/Source/Core/DolphinWX/Src/ISOProperties.cpp b/Source/Core/DolphinWX/Src/ISOProperties.cpp index c542e14a4f..1cbe922b5e 100644 --- a/Source/Core/DolphinWX/Src/ISOProperties.cpp +++ b/Source/Core/DolphinWX/Src/ISOProperties.cpp @@ -617,7 +617,7 @@ void CISOProperties::OnExtractFile(wxCommandEvent& WXUNUSED (event)) void CISOProperties::ExportDir(const char* _rFullPath, const char* _rExportFolder, const int partitionNum) { char exportName[512]; - u32 index[2], offsetShift = 0; + u32 index[2] = {0, 0}, offsetShift = 0; std::vector fst; DiscIO::IFileSystem *FS = 0;