summaryrefslogtreecommitdiff
path: root/Source/UnitTests
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2025-06-09 15:30:26 +0200
committerJoshua Vandaƫle <joshua@vandaele.software>2025-07-12 12:47:30 +0200
commit06882bd2dca4ea92d0608077c45cff6cb7e41583 (patch)
treec20781479b42392bea8ba2169d0e123e9a98d0c3 /Source/UnitTests
parentf76ab863266d012281e52bceda355bc72f36edb8 (diff)
Fix various warnings
Diffstat (limited to 'Source/UnitTests')
-rw-r--r--Source/UnitTests/Common/SPSCQueueTest.cpp2
-rw-r--r--Source/UnitTests/Common/StringUtilTest.cpp2
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);
}