fix(clang-cl): reduce warnings in tests (#6331)

This commit is contained in:
nerix
2025-07-12 23:19:19 +02:00
committed by GitHub
parent 76b9432da7
commit bbfe970a3e
4 changed files with 18 additions and 6 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ TEST(ChatterSet, MaxSize)
EXPECT_TRUE(set.contains("Pajlada"));
// After adding CHATTER_LIMIT-1 additional chatters, pajlada should still be in the set
for (auto i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
for (size_t i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
{
set.addRecentChatter(QString("%1").arg(i));
}
@@ -65,7 +65,7 @@ TEST(ChatterSet, MaxSizeLastUsed)
EXPECT_TRUE(set.contains("Pajlada"));
// After adding CHATTER_LIMIT-1 additional chatters, pajlada should still be in the set
for (auto i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
for (size_t i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
{
set.addRecentChatter(QString("%1").arg(i));
}
@@ -77,7 +77,7 @@ TEST(ChatterSet, MaxSizeLastUsed)
set.addRecentChatter("pajlada");
// After another CHATTER_LIMIT-1 additional chatters, pajlada should still be there
for (auto i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
for (size_t i = 0; i < ChatterSet::CHATTER_LIMIT - 1; ++i)
{
set.addRecentChatter(QString("new-%1").arg(i));
}