mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Fix all uninitialized variable warnings (C26495)
This commit is contained in:
@ -163,8 +163,8 @@ protected:
|
||||
|
||||
std::unique_ptr<X64CodeBlock> emitter;
|
||||
std::unique_ptr<disassembler> disasm;
|
||||
u8* code_buffer;
|
||||
u8* code_buffer_end;
|
||||
u8* code_buffer = nullptr;
|
||||
u8* code_buffer_end = nullptr;
|
||||
};
|
||||
|
||||
#define TEST_INSTR_NO_OPERANDS(Name, ExpectedDisasm) \
|
||||
|
@ -67,7 +67,7 @@ class MappingTest : public testing::Test
|
||||
protected:
|
||||
virtual void SetUp() override { m_mapping = new MMIO::Mapping(); }
|
||||
virtual void TearDown() override { delete m_mapping; }
|
||||
MMIO::Mapping* m_mapping;
|
||||
MMIO::Mapping* m_mapping = nullptr;
|
||||
};
|
||||
|
||||
TEST_F(MappingTest, ReadConstant)
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
void* m_data;
|
||||
void* m_data = nullptr;
|
||||
std::chrono::time_point<std::chrono::high_resolution_clock> m_pre_unprotect_time,
|
||||
m_post_unprotect_time;
|
||||
};
|
||||
|
Reference in New Issue
Block a user