diff --git a/pcsx2/CDVD/InputIsoFile.cpp b/pcsx2/CDVD/InputIsoFile.cpp index 2e24817b48..ca0b3dd010 100644 --- a/pcsx2/CDVD/InputIsoFile.cpp +++ b/pcsx2/CDVD/InputIsoFile.cpp @@ -90,7 +90,8 @@ void InputIsoFile::BeginRead2(uint lsn) int InputIsoFile::FinishRead3(u8* dst, uint mode) { - int _offset, length; + int _offset = 0; + int length = 0; int ret = 0; if(m_current_lsn < 0) diff --git a/pcsx2/CDVD/IsoFS/IsoFS.cpp b/pcsx2/CDVD/IsoFS/IsoFS.cpp index efb1259c9d..47c4906933 100644 --- a/pcsx2/CDVD/IsoFS/IsoFS.cpp +++ b/pcsx2/CDVD/IsoFS/IsoFS.cpp @@ -209,9 +209,10 @@ u32 IsoDirectory::GetFileSize( const wxString& filePath ) const IsoFileDescriptor::IsoFileDescriptor() { - lba = 0; - size = 0; + lba = 0; + size = 0; flags = 0; + memset(&date, 0, sizeof(date)); } IsoFileDescriptor::IsoFileDescriptor(const u8* data, int length) diff --git a/pcsx2/DebugTools/DisR5900asm.cpp b/pcsx2/DebugTools/DisR5900asm.cpp index 1d561700da..b887d306e0 100644 --- a/pcsx2/DebugTools/DisR5900asm.cpp +++ b/pcsx2/DebugTools/DisR5900asm.cpp @@ -869,6 +869,9 @@ void disMemAccess( std::string& output, const char* name, int cop = 0) case 2: rt = COP2_REG_FP[DECODE_FT]; break; + default: + rt = "???"; + break; } const char* rs = GPR_REG[DECODE_RS]; diff --git a/pcsx2/DebugTools/DisassemblyManager.cpp b/pcsx2/DebugTools/DisassemblyManager.cpp index 54b2d073d3..22b2612535 100644 --- a/pcsx2/DebugTools/DisassemblyManager.cpp +++ b/pcsx2/DebugTools/DisassemblyManager.cpp @@ -444,8 +444,10 @@ void DisassemblyFunction::generateBranchLines() }; LaneInfo lanes[NUM_LANES]; - for (int i = 0; i < NUM_LANES; i++) + for (int i = 0; i < NUM_LANES; i++) { lanes[i].used = false; + lanes[i].end = 0; + } u32 end = address+size; diff --git a/pcsx2/DebugTools/ExpressionParser.cpp b/pcsx2/DebugTools/ExpressionParser.cpp index b4c24ded18..4d757e872c 100644 --- a/pcsx2/DebugTools/ExpressionParser.cpp +++ b/pcsx2/DebugTools/ExpressionParser.cpp @@ -413,8 +413,8 @@ bool parsePostfixExpression(PostfixExpression& exp, IExpressionFunctions* funcs, size_t num = 0; u64 opcode; std::vector valueStack; - u64 arg[5]; - float fArg[5]; + u64 arg[5] = {0}; + float fArg[5] = {0}; bool useFloat = false; while (num < exp.size())