diff options
-rw-r--r-- | devel/protozero/files/patch-test_catch_catch.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/protozero/files/patch-test_catch_catch.hpp b/devel/protozero/files/patch-test_catch_catch.hpp new file mode 100644 index 000000000000..5a58a92c951e --- /dev/null +++ b/devel/protozero/files/patch-test_catch_catch.hpp @@ -0,0 +1,18 @@ +--- test/catch/catch.hpp.orig 2022-01-10 10:02:41 UTC ++++ test/catch/catch.hpp +@@ -175,8 +175,13 @@ namespace Catch { + # define CATCH_INTERNAL_SUPPRESS_UNUSED_WARNINGS \ + _Pragma( "clang diagnostic ignored \"-Wunused-variable\"" ) + +-# define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ +- _Pragma( "clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"" ) ++# if __clang_major__ >= 19 ++# define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ ++ _Pragma( "clang diagnostic ignored \"-Wc++20-extensions\"" ) ++# else ++# define CATCH_INTERNAL_SUPPRESS_ZERO_VARIADIC_WARNINGS \ ++ _Pragma( "clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"" ) ++#endif + + # define CATCH_INTERNAL_SUPPRESS_UNUSED_TEMPLATE_WARNINGS \ + _Pragma( "clang diagnostic ignored \"-Wunused-template\"" ) |