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()
{
// Suppress unused variable warnings
(void)g1;
(void)g2;
int Error = 0;
Error += test_size();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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;
}
}