From 0df8dcb454f319f3f8d044e78f0f9e2adc90f778 Mon Sep 17 00:00:00 2001 From: Tom Kneiphof Date: Thu, 7 Mar 2024 18:06:10 +0100 Subject: [PATCH] Supporess unused-variable warnings --- test/core/core_type_vec1.cpp | 4 ++++ test/core/core_type_vec2.cpp | 5 +++++ test/core/core_type_vec3.cpp | 5 +++++ test/core/core_type_vec4.cpp | 5 +++++ test/ext/ext_vec1.cpp | 4 ++++ test/gtx/gtx_easing.cpp | 28 ++++++++++++++++++++++++++++ 6 files changed, 51 insertions(+) diff --git a/test/core/core_type_vec1.cpp b/test/core/core_type_vec1.cpp index 737f0910..73c15c9f 100644 --- a/test/core/core_type_vec1.cpp +++ b/test/core/core_type_vec1.cpp @@ -176,6 +176,10 @@ static int test_constexpr() int main() { + // Suppress unused variable warnings + (void)g1; + (void)g2; + int Error = 0; Error += test_size(); diff --git a/test/core/core_type_vec2.cpp b/test/core/core_type_vec2.cpp index ed75aa17..a08cb517 100644 --- a/test/core/core_type_vec2.cpp +++ b/test/core/core_type_vec2.cpp @@ -400,6 +400,11 @@ static int test_swizzle() int main() { + // Suppress unused variable warnings + (void)g1; + (void)g2; + (void)g3; + int Error = 0; Error += test_size(); diff --git a/test/core/core_type_vec3.cpp b/test/core/core_type_vec3.cpp index 0d9d8da6..8383cf95 100644 --- a/test/core/core_type_vec3.cpp +++ b/test/core/core_type_vec3.cpp @@ -612,6 +612,11 @@ static int test_constexpr() int main() { + // Suppress unused variable warnings + (void)g1; + (void)g2; + (void)g3; + int Error = 0; Error += test_vec3_ctor(); diff --git a/test/core/core_type_vec4.cpp b/test/core/core_type_vec4.cpp index 85107242..a9b9a3a3 100644 --- a/test/core/core_type_vec4.cpp +++ b/test/core/core_type_vec4.cpp @@ -770,6 +770,11 @@ static int test_simd_gen() */ int main() { + // Suppress unused variable warnings + (void)g1; + (void)g2; + (void)g3; + int Error = 0; //Error += test_simd_gen(); diff --git a/test/ext/ext_vec1.cpp b/test/ext/ext_vec1.cpp index 02a821c9..1b9ba0f2 100644 --- a/test/ext/ext_vec1.cpp +++ b/test/ext/ext_vec1.cpp @@ -154,6 +154,10 @@ static int test_constexpr() int main() { + // Suppress unused variable warnings + (void)g1; + (void)g2; + int Error = 0; Error += test_vec1_size(); diff --git a/test/gtx/gtx_easing.cpp b/test/gtx/gtx_easing.cpp index e99173d4..c0f1f66d 100644 --- a/test/gtx/gtx_easing.cpp +++ b/test/gtx/gtx_easing.cpp @@ -12,42 +12,70 @@ namespace T r; r = glm::linearInterpolation(a); + (void)r; r = glm::quadraticEaseIn(a); + (void)r; r = glm::quadraticEaseOut(a); + (void)r; r = glm::quadraticEaseInOut(a); + (void)r; r = glm::cubicEaseIn(a); + (void)r; r = glm::cubicEaseOut(a); + (void)r; r = glm::cubicEaseInOut(a); + (void)r; r = glm::quarticEaseIn(a); + (void)r; r = glm::quarticEaseOut(a); + (void)r; r = glm::quinticEaseInOut(a); + (void)r; r = glm::sineEaseIn(a); + (void)r; r = glm::sineEaseOut(a); + (void)r; r = glm::sineEaseInOut(a); + (void)r; r = glm::circularEaseIn(a); + (void)r; r = glm::circularEaseOut(a); + (void)r; r = glm::circularEaseInOut(a); + (void)r; r = glm::exponentialEaseIn(a); + (void)r; r = glm::exponentialEaseOut(a); + (void)r; r = glm::exponentialEaseInOut(a); + (void)r; r = glm::elasticEaseIn(a); + (void)r; r = glm::elasticEaseOut(a); + (void)r; r = glm::elasticEaseInOut(a); + (void)r; r = glm::backEaseIn(a); + (void)r; r = glm::backEaseOut(a); + (void)r; r = glm::backEaseInOut(a); + (void)r; r = glm::bounceEaseIn(a); + (void)r; r = glm::bounceEaseOut(a); + (void)r; r = glm::bounceEaseInOut(a); + (void)r; } }