Update to version 2.13.10: OBS-URL: https://build.opensuse.org/request/show/1059295 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Catch2-2?expand=0&rev=3
23 lines
874 B
Diff
23 lines
874 B
Diff
Index: Catch2-2.13.10/projects/SelfTest/UsageTests/Message.tests.cpp
|
|
===================================================================
|
|
--- Catch2-2.13.10.orig/projects/SelfTest/UsageTests/Message.tests.cpp
|
|
+++ Catch2-2.13.10/projects/SelfTest/UsageTests/Message.tests.cpp
|
|
@@ -242,7 +242,7 @@ std::ostream& operator<<(std::ostream& o
|
|
}
|
|
|
|
// clang can handle GCC's diagnostic pragma
|
|
-#if defined( __GNUG__ ) || defined(__clang__)
|
|
+#if defined( __GNUG__ ) && __GNUG__ >= 8 || defined(__clang__)
|
|
# pragma GCC diagnostic push
|
|
#endif
|
|
// Clang and gcc have different names for this warning, and clang also
|
|
@@ -263,7 +263,7 @@ TEST_CASE("CAPTURE can deal with complex
|
|
CAPTURE( (1, 2), (2, 3) );
|
|
SUCCEED();
|
|
}
|
|
-#if defined( __GNUG__ ) || defined(__clang__)
|
|
+#if defined( __GNUG__ ) && __GNUG__ >= 8 || defined(__clang__)
|
|
# pragma GCC diagnostic pop
|
|
#endif
|
|
|