Skip to content

Commit

Permalink
reduce warnings in SKIP_TESTING case
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Oct 11, 2022
1 parent 647f850 commit 3cbeba1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Magnum/Math/Test/Vector4Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ namespace Test { namespace {
struct Vector4Test: Corrade::TestSuite::Tester {
explicit Vector4Test();

#ifndef SKIP_TESTING
void construct();
void constructPad();
void constructDefault();
Expand All @@ -80,8 +81,9 @@ struct Vector4Test: Corrade::TestSuite::Tester {

void swizzleType();
void debug();

[[maybe_unused]] void skipTesting();
#else
void skipTesting();
#endif
};

typedef Math::Vector4<Float> Vector4;
Expand Down
6 changes: 4 additions & 2 deletions src/Magnum/Math/Test/VectorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ namespace Test { namespace {
struct VectorTest: Corrade::TestSuite::Tester {
explicit VectorTest();

#ifndef SKIP_TESTING
void construct();
void constructFromData();
void constructPad();
Expand Down Expand Up @@ -121,8 +122,9 @@ struct VectorTest: Corrade::TestSuite::Tester {

void debug();
void debugPacked();

[[maybe_unused]] void skipTesting();
#else
void skipTesting();
#endif
};

typedef Math::Constants<Float> Constants;
Expand Down

0 comments on commit 3cbeba1

Please sign in to comment.