Fix uninitialized variable warnings (C26495)

This commit is contained in:
Pokechu22
2023-02-15 19:18:39 -08:00
parent 089eab96d7
commit 8802f96b7e
30 changed files with 182 additions and 180 deletions

View File

@ -484,12 +484,14 @@ public:
m_width = WidthSpecifier::Width64Bit;
if (shift == 64)
m_shift = 0;
m_extend = ExtendSpecifier::UXTX;
}
else
{
m_width = WidthSpecifier::Width32Bit;
if (shift == 32)
m_shift = 0;
m_extend = ExtendSpecifier::UXTW;
}
}
ARM64Reg GetReg() const { return m_destReg; }

View File

@ -31,7 +31,7 @@ struct InstructionAttributes
struct TraceOutput
{
u32 address;
u32 address = 0;
std::optional<u32> memory_target = std::nullopt;
std::string instruction;
};

View File

@ -160,8 +160,8 @@ public:
return GetSystemTimeFAT();
}
File::IOFile* m_image;
bool m_deterministic;
File::IOFile* m_image = nullptr;
bool m_deterministic = false;
};
} // namespace