From f445a24f82d3a194ab26e029873b2402949ba642 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 8 Aug 2017 22:44:13 +0200 Subject: [PATCH] Fixed test warnings --- test/core/core_type_vec2.cpp | 6 +++--- test/core/core_type_vec4.cpp | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/test/core/core_type_vec2.cpp b/test/core/core_type_vec2.cpp index 21159eed..4bc29e3c 100644 --- a/test/core/core_type_vec2.cpp +++ b/test/core/core_type_vec2.cpp @@ -7,9 +7,9 @@ # include #endif -static glm::vec2 v1; -static glm::vec2 v2(1); -static glm::vec2 v3(1, 1); +static glm::vec2 g1; +static glm::vec2 g2(1); +static glm::vec2 g3(1, 1); int test_vec2_operators() { diff --git a/test/core/core_type_vec4.cpp b/test/core/core_type_vec4.cpp index 82a2890c..fccecc48 100644 --- a/test/core/core_type_vec4.cpp +++ b/test/core/core_type_vec4.cpp @@ -464,12 +464,12 @@ int test_vec4_perf_SoA(std::size_t Size) namespace heap { - class A + struct A { float f; }; - class B : public A + struct B : public A { float g; glm::vec4 v; @@ -477,11 +477,14 @@ namespace heap int test() { - int Error(0); + int Error = 0; A* p = new B; + p->f = 0.0f; delete p; + Error += sizeof(B) == sizeof(glm::vec4) + sizeof(float) * 2 ? 0 : 1; + return Error; } }//namespace heap