Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-05-31 23:57:02 +0200
committerMartin Hořeňovský2022-05-31 23:57:09 +0200
commitcca59235023fa30339086be845d9cd7214ecff91 (patch)
treefb38826556871df478c5a95d0a633a1c79098f43 /src/catch2/internal
parent8c952bd0762c2962c5ac1b2bf8af075b2b4c3500 (diff)
downloadcatch3-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.hpp4
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