suppress some warnings

This commit is contained in:
ohyzha
2025-03-05 13:34:48 +02:00
parent efcee95158
commit c5a0c52530
21 changed files with 34 additions and 36 deletions

View File

@@ -245,7 +245,7 @@ TEST_CASE("Iterator constructor", "[Array]")
char data[] = "Hello world";
Array<char> arr(data, data + sizeof(data));
REQUIRE(arr.Data() != data);
for (int i = 0; i < sizeof(data); i++)
for (size_t i = 0; i < sizeof(data); i++)
{
REQUIRE(data[i] == arr[i]);
}
@@ -254,7 +254,7 @@ TEST_CASE("Iterator constructor", "[Array]")
{
Array<int> arr = { 1, 2, 3, 4, 5 };
Array<double> arr2(arr.begin(), arr.end());
for (int i = 0; i < arr.Size(); i++)
for (size_t i = 0; i < arr.Size(); i++)
{
REQUIRE(arr[i] == arr2[i]);
}

View File

@@ -42,7 +42,6 @@ TEST_CASE("RaySphereIntersection")
// this returns just closest point
if (auto opt = ray.IntersectSphere(Vector3f(0), 1))
{
opt->GetDistance();
REQUIRE(opt.value() == h1);
}
}