Fixed test warnings

This commit is contained in:
Christophe Riccio 2017-08-08 22:44:13 +02:00
parent b138eed73b
commit f445a24f82
2 changed files with 9 additions and 6 deletions

View File

@ -7,9 +7,9 @@
# include <type_traits> # include <type_traits>
#endif #endif
static glm::vec2 v1; static glm::vec2 g1;
static glm::vec2 v2(1); static glm::vec2 g2(1);
static glm::vec2 v3(1, 1); static glm::vec2 g3(1, 1);
int test_vec2_operators() int test_vec2_operators()
{ {

View File

@ -464,12 +464,12 @@ int test_vec4_perf_SoA(std::size_t Size)
namespace heap namespace heap
{ {
class A struct A
{ {
float f; float f;
}; };
class B : public A struct B : public A
{ {
float g; float g;
glm::vec4 v; glm::vec4 v;
@ -477,11 +477,14 @@ namespace heap
int test() int test()
{ {
int Error(0); int Error = 0;
A* p = new B; A* p = new B;
p->f = 0.0f;
delete p; delete p;
Error += sizeof(B) == sizeof(glm::vec4) + sizeof(float) * 2 ? 0 : 1;
return Error; return Error;
} }
}//namespace heap }//namespace heap