diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2025-06-09 15:30:26 +0200 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2025-07-12 12:47:30 +0200 |
| commit | 06882bd2dca4ea92d0608077c45cff6cb7e41583 (patch) | |
| tree | c20781479b42392bea8ba2169d0e123e9a98d0c3 /Source/UnitTests | |
| parent | f76ab863266d012281e52bceda355bc72f36edb8 (diff) | |
Fix various warnings
Diffstat (limited to 'Source/UnitTests')
| -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); } |
