diff --git a/tests/SelfTest/UsageTests/Condition.tests.cpp b/tests/SelfTest/UsageTests/Condition.tests.cpp index 211dd3b9..922d44d2 100644 --- a/tests/SelfTest/UsageTests/Condition.tests.cpp +++ b/tests/SelfTest/UsageTests/Condition.tests.cpp @@ -6,15 +6,6 @@ // SPDX-License-Identifier: BSL-1.0 -#ifdef __clang__ -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wpadded" -// Wdouble-promotion is not supported until 3.8 -# if (__clang_major__ > 3) || (__clang_major__ == 3 && __clang_minor__ > 7) -# pragma clang diagnostic ignored "-Wdouble-promotion" -# endif -#endif - #include #include @@ -24,6 +15,16 @@ using Catch::Approx; #include #include +#ifdef __clang__ +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wpadded" +// Wdouble-promotion is not supported until 3.8 +# if ( __clang_major__ > 3 ) || \ + ( __clang_major__ == 3 && __clang_minor__ > 7 ) +# pragma clang diagnostic ignored "-Wdouble-promotion" +# endif +#endif + namespace { struct TestData {