diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2024-11-08 18:31:50 +0300 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2024-11-08 18:34:00 +0300 |
commit | a4be34bc81a30016a9a7eb22ae0509fb505775ee (patch) | |
tree | cbbcb04cef1db772092d5c8a81c984bfc339ca44 | |
parent | devel/osc: update 1.9.2 → 1.10.0 (diff) |
devel/protozero: fix build with clang 19
PR: 282475
Submitted by: dim
-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\"" ) |