diff --git a/Source/Core/Core/HW/DVD/DVDInterface.cpp b/Source/Core/Core/HW/DVD/DVDInterface.cpp index 2ea86942da..ee02b90533 100644 --- a/Source/Core/Core/HW/DVD/DVDInterface.cpp +++ b/Source/Core/Core/HW/DVD/DVDInterface.cpp @@ -349,8 +349,8 @@ static void DTKStreamingCallback(const std::vector& audio_data, s64 cycles_l // Determine which audio data to read next. static const int MAXIMUM_SAMPLES = 48000 / 2000 * 7; // 3.5ms of 48kHz samples - u64 read_offset; - u32 read_length; + u64 read_offset = 0; + u32 read_length = 0; if (s_stream && AudioInterface::IsPlaying()) { read_offset = s_audio_position; diff --git a/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp b/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp index caf3136ff4..d3aa66fc7c 100644 --- a/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp +++ b/Source/Core/Core/IOS/USB/Bluetooth/BTReal.cpp @@ -533,7 +533,7 @@ void BluetoothReal::LoadLinkKeys() std::reverse(address.begin(), address.end()); const std::string& key_string = pair.substr(index + 1); - linkkey_t key; + linkkey_t key{}; size_t pos = 0; for (size_t i = 0; i < key_string.length(); i = i + 2) { diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp index 1d34bf4796..fc6e1f262a 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp @@ -202,7 +202,7 @@ void Jit64::lXXx(UGeckoInstruction inst) // If we're using reg+reg mode and b is an immediate, pretend we're using constant offset mode bool use_constant_offset = inst.OPCD != 31 || gpr.R(b).IsImm(); - s32 offset; + s32 offset = 0; if (use_constant_offset) offset = inst.OPCD == 31 ? gpr.R(b).SImm32() : (s32)inst.SIMM_16; // Depending on whether we have an immediate and/or update, find the optimum way to calculate diff --git a/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp b/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp index 6d6b1450e7..ac870c8804 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp @@ -154,7 +154,7 @@ void MemoryCheckDlg::OnOK(wxCommandEvent& event) bool Log = m_radioLog->GetValue() || m_radioBreakLog->GetValue(); bool Break = m_radioBreak->GetValue() || m_radioBreakLog->GetValue(); - u32 StartAddress, EndAddress; + u32 StartAddress = UINT32_MAX, EndAddress = 0; bool EndAddressOK = EndAddressString.Len() && AsciiToHex(WxStrToStr(EndAddressString), EndAddress);