diff options
Diffstat (limited to 'Source/UnitTests/Common')
| -rw-r--r-- | Source/UnitTests/Common/SPSCQueueTest.cpp | 2 | ||||
| -rw-r--r-- | Source/UnitTests/Common/StringUtilTest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/UnitTests/Common/SPSCQueueTest.cpp b/Source/UnitTests/Common/SPSCQueueTest.cpp index 13848bd95f..ddc57c8d1a 100644 --- a/Source/UnitTests/Common/SPSCQueueTest.cpp +++ b/Source/UnitTests/Common/SPSCQueueTest.cpp @@ -32,7 +32,7 @@ TEST(SPSCQueue, Simple) EXPECT_EQ(1000u, q.Size()); for (u32 i = 0; i < 1000; ++i) { - u32 v2; + u32 v2 = 0; q.Pop(v2); EXPECT_EQ(i, v2); } diff --git a/Source/UnitTests/Common/StringUtilTest.cpp b/Source/UnitTests/Common/StringUtilTest.cpp index 5c21610a13..2be462a1b5 100644 --- a/Source/UnitTests/Common/StringUtilTest.cpp +++ b/Source/UnitTests/Common/StringUtilTest.cpp @@ -57,7 +57,7 @@ static void DoRoundTripTest(const std::vector<T>& data) for (const T& e : data) { const std::string s = ValueToString(e); - T out; + T out = T(); EXPECT_TRUE(TryParse(s, &out)); EXPECT_EQ(e, out); } |
