diff options
| author | Martin Hořeňovský | 2026-04-01 10:56:17 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-04-01 10:56:21 +0200 |
| commit | fe2a20ab555ec28af47acaeafdad6d0872f7cb82 (patch) | |
| tree | de28a8b7de9491bb680eddcc5f76cd42e47b9995 /tests/SelfTest/UsageTests | |
| parent | 51b0532d1fba061d0802ccfd906cc87fc2dd49c2 (diff) | |
| download | catch3-fe2a20ab555ec28af47acaeafdad6d0872f7cb82.tar.gz | |
Fix warning suppression block in Condition.tests straddling includes
Diffstat (limited to 'tests/SelfTest/UsageTests')
| -rw-r--r-- | tests/SelfTest/UsageTests/Condition.tests.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
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 <catch2/catch_approx.hpp> #include <catch2/catch_test_macros.hpp> @@ -24,6 +15,16 @@ using Catch::Approx; #include <limits> #include <cstdint> +#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 { |