Skip to content

Commit

Permalink
Supporess unused-variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomix1024 authored and christophe-lunarg committed Mar 12, 2024
1 parent 08a1190 commit 0df8dcb
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/core/core_type_vec1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ static int test_constexpr()

int main()
{
// Suppress unused variable warnings
(void)g1;
(void)g2;

int Error = 0;

Error += test_size();
Expand Down
5 changes: 5 additions & 0 deletions test/core/core_type_vec2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions test/core/core_type_vec3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 5 additions & 0 deletions test/core/core_type_vec4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 4 additions & 0 deletions test/ext/ext_vec1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
28 changes: 28 additions & 0 deletions test/gtx/gtx_easing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 0df8dcb

Please sign in to comment.