Skip to content

Commit cca5923

Browse files
committed
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.
1 parent 8c952bd commit cca5923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/catch2/internal/catch_test_macro_impl.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#include <catch2/internal/catch_stringref.hpp>
1515
#include <catch2/internal/catch_source_line_info.hpp>
1616

17-
// We need this suppression to leak, because it took until GCC 9
17+
// We need this suppression to leak, because it took until GCC 10
1818
// for the front end to handle local suppression via _Pragma properly
19-
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && __GNUC__ < 9
19+
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && __GNUC__ <= 9
2020
#pragma GCC diagnostic ignored "-Wparentheses"
2121
#endif
2222

0 commit comments

Comments
 (0)