Supporess unused-variable warnings

This commit is contained in:
Tom Kneiphof 2024-03-07 18:06:10 +01:00 committed by Christophe
parent 08a11905cf
commit 0df8dcb454
6 changed files with 51 additions and 0 deletions

View File

@ -176,6 +176,10 @@ static int test_constexpr()
int main() int main()
{ {
// Suppress unused variable warnings
(void)g1;
(void)g2;
int Error = 0; int Error = 0;
Error += test_size(); Error += test_size();

View File

@ -400,6 +400,11 @@ static int test_swizzle()
int main() int main()
{ {
// Suppress unused variable warnings
(void)g1;
(void)g2;
(void)g3;
int Error = 0; int Error = 0;
Error += test_size(); Error += test_size();

View File

@ -612,6 +612,11 @@ static int test_constexpr()
int main() int main()
{ {
// Suppress unused variable warnings
(void)g1;
(void)g2;
(void)g3;
int Error = 0; int Error = 0;
Error += test_vec3_ctor(); Error += test_vec3_ctor();

View File

@ -770,6 +770,11 @@ static int test_simd_gen()
*/ */
int main() int main()
{ {
// Suppress unused variable warnings
(void)g1;
(void)g2;
(void)g3;
int Error = 0; int Error = 0;
//Error += test_simd_gen(); //Error += test_simd_gen();

View File

@ -154,6 +154,10 @@ static int test_constexpr()
int main() int main()
{ {
// Suppress unused variable warnings
(void)g1;
(void)g2;
int Error = 0; int Error = 0;
Error += test_vec1_size(); Error += test_vec1_size();

View File

@ -12,42 +12,70 @@ namespace
T r; T r;
r = glm::linearInterpolation(a); r = glm::linearInterpolation(a);
(void)r;
r = glm::quadraticEaseIn(a); r = glm::quadraticEaseIn(a);
(void)r;
r = glm::quadraticEaseOut(a); r = glm::quadraticEaseOut(a);
(void)r;
r = glm::quadraticEaseInOut(a); r = glm::quadraticEaseInOut(a);
(void)r;
r = glm::cubicEaseIn(a); r = glm::cubicEaseIn(a);
(void)r;
r = glm::cubicEaseOut(a); r = glm::cubicEaseOut(a);
(void)r;
r = glm::cubicEaseInOut(a); r = glm::cubicEaseInOut(a);
(void)r;
r = glm::quarticEaseIn(a); r = glm::quarticEaseIn(a);
(void)r;
r = glm::quarticEaseOut(a); r = glm::quarticEaseOut(a);
(void)r;
r = glm::quinticEaseInOut(a); r = glm::quinticEaseInOut(a);
(void)r;
r = glm::sineEaseIn(a); r = glm::sineEaseIn(a);
(void)r;
r = glm::sineEaseOut(a); r = glm::sineEaseOut(a);
(void)r;
r = glm::sineEaseInOut(a); r = glm::sineEaseInOut(a);
(void)r;
r = glm::circularEaseIn(a); r = glm::circularEaseIn(a);
(void)r;
r = glm::circularEaseOut(a); r = glm::circularEaseOut(a);
(void)r;
r = glm::circularEaseInOut(a); r = glm::circularEaseInOut(a);
(void)r;
r = glm::exponentialEaseIn(a); r = glm::exponentialEaseIn(a);
(void)r;
r = glm::exponentialEaseOut(a); r = glm::exponentialEaseOut(a);
(void)r;
r = glm::exponentialEaseInOut(a); r = glm::exponentialEaseInOut(a);
(void)r;
r = glm::elasticEaseIn(a); r = glm::elasticEaseIn(a);
(void)r;
r = glm::elasticEaseOut(a); r = glm::elasticEaseOut(a);
(void)r;
r = glm::elasticEaseInOut(a); r = glm::elasticEaseInOut(a);
(void)r;
r = glm::backEaseIn(a); r = glm::backEaseIn(a);
(void)r;
r = glm::backEaseOut(a); r = glm::backEaseOut(a);
(void)r;
r = glm::backEaseInOut(a); r = glm::backEaseInOut(a);
(void)r;
r = glm::bounceEaseIn(a); r = glm::bounceEaseIn(a);
(void)r;
r = glm::bounceEaseOut(a); r = glm::bounceEaseOut(a);
(void)r;
r = glm::bounceEaseInOut(a); r = glm::bounceEaseInOut(a);
(void)r;
} }
} }