diff options
| author | Martin Hořeňovský | 2022-05-31 23:57:02 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-05-31 23:57:09 +0200 |
| commit | cca59235023fa30339086be845d9cd7214ecff91 (patch) | |
| tree | fb38826556871df478c5a95d0a633a1c79098f43 /src/catch2/internal | |
| parent | 8c952bd0762c2962c5ac1b2bf8af075b2b4c3500 (diff) | |
| download | catch3-cca59235023fa30339086be845d9cd7214ecff91.tar.gz | |
Leak full Wparentheses suppression for GCC 9
Reported as an issue on Discord. I thought that by GCC 9, the
C++ frontend was fixed enough to support `_Pragma`-based
suppression correctly, but apparently I was wrong.
Diffstat (limited to 'src/catch2/internal')
| -rw-r--r-- | src/catch2/internal/catch_test_macro_impl.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_test_macro_impl.hpp b/src/catch2/internal/catch_test_macro_impl.hpp index 71812040..95384bc1 100644 --- a/src/catch2/internal/catch_test_macro_impl.hpp +++ b/src/catch2/internal/catch_test_macro_impl.hpp @@ -14,9 +14,9 @@ #include <catch2/internal/catch_stringref.hpp> #include <catch2/internal/catch_source_line_info.hpp> -// We need this suppression to leak, because it took until GCC 9 +// We need this suppression to leak, because it took until GCC 10 // for the front end to handle local suppression via _Pragma properly -#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && __GNUC__ < 9 +#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && __GNUC__ <= 9 #pragma GCC diagnostic ignored "-Wparentheses" #endif |