Remove disabled warnings (#1213)

* Remove disabled warnings
This commit is contained in:
Christophe
2024-01-20 10:11:13 +01:00
committed by GitHub
parent b06b775c1c
commit f86092a658
182 changed files with 2669 additions and 1719 deletions
+40 -24
View File
@@ -2,11 +2,11 @@
#include <glm/vec3.hpp>
#include <cstdio>
int test_compiler()
static int test_compiler()
{
int Error(0);
if(GLM_COMPILER & GLM_COMPILER_VC)
# if(GLM_COMPILER & GLM_COMPILER_VC)
{
switch(GLM_COMPILER)
{
@@ -49,7 +49,7 @@ int test_compiler()
break;
}
}
else if(GLM_COMPILER & GLM_COMPILER_GCC)
# elif(GLM_COMPILER & GLM_COMPILER_GCC)
{
switch(GLM_COMPILER)
{
@@ -101,11 +101,11 @@ int test_compiler()
break;
}
}
else if(GLM_COMPILER & GLM_COMPILER_CUDA)
# elif(GLM_COMPILER & GLM_COMPILER_CUDA)
{
std::printf("CUDA\n");
}
else if(GLM_COMPILER & GLM_COMPILER_CLANG)
# elif(GLM_COMPILER & GLM_COMPILER_CLANG)
{
switch(GLM_COMPILER)
{
@@ -180,7 +180,7 @@ int test_compiler()
break;
}
}
else if(GLM_COMPILER & GLM_COMPILER_INTEL)
# elif(GLM_COMPILER & GLM_COMPILER_INTEL)
{
switch(GLM_COMPILER)
{
@@ -211,67 +211,83 @@ int test_compiler()
break;
}
}
else
#else
{
std::printf("Undetected compiler\n");
Error += 1;
}
#endif
return Error;
}
int test_model()
static int test_model()
{
int Error = 0;
Error += ((sizeof(void*) == 4) && (GLM_MODEL == GLM_MODEL_32)) || ((sizeof(void*) == 8) && (GLM_MODEL == GLM_MODEL_64)) ? 0 : 1;
if(GLM_MODEL == GLM_MODEL_32)
# if GLM_MODEL == GLM_MODEL_32
std::printf("GLM_MODEL_32\n");
else if(GLM_MODEL == GLM_MODEL_64)
# elif GLM_MODEL == GLM_MODEL_64
std::printf("GLM_MODEL_64\n");
# endif
return Error;
}
int test_instruction_set()
static int test_instruction_set()
{
int Error = 0;
std::printf("GLM_ARCH: ");
if(GLM_ARCH & GLM_ARCH_ARM_BIT)
# if(GLM_ARCH & GLM_ARCH_ARM_BIT)
std::printf("ARM ");
if(GLM_ARCH & GLM_ARCH_NEON_BIT)
# elif(GLM_ARCH & GLM_ARCH_NEON_BIT)
std::printf("NEON ");
if(GLM_ARCH & GLM_ARCH_AVX2_BIT)
# elif(GLM_ARCH & GLM_ARCH_AVX2_BIT)
std::printf("AVX2 ");
if(GLM_ARCH & GLM_ARCH_AVX_BIT)
# elif(GLM_ARCH & GLM_ARCH_AVX_BIT)
std::printf("AVX ");
if(GLM_ARCH & GLM_ARCH_SSE42_BIT)
# elif(GLM_ARCH & GLM_ARCH_SSE42_BIT)
std::printf("SSE4.2 ");
if(GLM_ARCH & GLM_ARCH_SSE41_BIT)
# elif(GLM_ARCH & GLM_ARCH_SSE41_BIT)
std::printf("SSE4.1 ");
if(GLM_ARCH & GLM_ARCH_SSSE3_BIT)
# elif(GLM_ARCH & GLM_ARCH_SSSE3_BIT)
std::printf("SSSE3 ");
if(GLM_ARCH & GLM_ARCH_SSE3_BIT)
# elif(GLM_ARCH & GLM_ARCH_SSE3_BIT)
std::printf("SSE3 ");
if(GLM_ARCH & GLM_ARCH_SSE2_BIT)
# elif(GLM_ARCH & GLM_ARCH_SSE2_BIT)
std::printf("SSE2 ");
# endif
std::printf("\n");
return Error;
}
int test_cpp_version()
static int test_cpp_version()
{
std::printf("__cplusplus: %d\n", static_cast<int>(__cplusplus));
std::printf("GLM_LANG: ");
# if(GLM_LANG & GLM_LANG_CXX20_FLAG)
std::printf("C++ 20");
# elif(GLM_LANG & GLM_LANG_CXX17_FLAG)
std::printf("C++ 17");
# elif(GLM_LANG & GLM_LANG_CXX14_FLAG)
std::printf("C++ 14");
# elif(GLM_LANG & GLM_LANG_CXX11_FLAG)
std::printf("C++ 11");
# elif(GLM_LANG & GLM_LANG_CXX98_FLAG)
std::printf("C++ 98");
# endif
return 0;
}
int test_operators()
static int test_operators()
{
glm::ivec3 A(1);
glm::ivec3 B(1);