From b95b8b04260bbac6f1a2ff9115b77b9c7b312baf Mon Sep 17 00:00:00 2001 From: ohyzha Date: Wed, 5 Mar 2025 14:57:10 +0200 Subject: [PATCH] suppress few more warnings --- examples/ExampleApps/TextExampleApp.cpp | 2 +- openVulkanoCpp/Scene/GeometryFactory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ExampleApps/TextExampleApp.cpp b/examples/ExampleApps/TextExampleApp.cpp index ddbaebb..bc363b0 100644 --- a/examples/ExampleApps/TextExampleApp.cpp +++ b/examples/ExampleApps/TextExampleApp.cpp @@ -81,7 +81,7 @@ namespace OpenVulkano for (int i = 0, xOffset = -5; i < atlasesCount; i++, xOffset += 20) { float totalH = 0; - for (int j = 0; j < texts.size(); j++) + for (size_t j = 0; j < texts.size(); j++) { TextDrawable* t = nullptr; #if defined(MSDFGEN_AVAILABLE) && defined(CREATE_NEW_ATLAS) diff --git a/openVulkanoCpp/Scene/GeometryFactory.cpp b/openVulkanoCpp/Scene/GeometryFactory.cpp index a7a4378..a9a6f97 100644 --- a/openVulkanoCpp/Scene/GeometryFactory.cpp +++ b/openVulkanoCpp/Scene/GeometryFactory.cpp @@ -317,7 +317,7 @@ namespace OpenVulkano::Scene width /= 2; const float segmentV = endVCoord / (segments - 1); float segV = 0; - for(int i = 0, seg = 0; seg < segments; seg++) + for(uint32_t i = 0, seg = 0; seg < segments; seg++) { float angle = seg * segmentAngle; float z = std::cos(angle) * radius;