From 4c5e53ed236acdb9af7c6cf8fc4f3db870a84f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Fri, 20 Mar 2026 16:22:55 +0100 Subject: [PATCH 1/4] modules: try to fix examples build on clang-19 --- examples/modules.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/modules.cpp b/examples/modules.cpp index 1a908082..9342d743 100644 --- a/examples/modules.cpp +++ b/examples/modules.cpp @@ -1,8 +1,5 @@ import libremidi; -#include -#include - inline std::ostream& operator<<(std::ostream& s, const libremidi::message& message) { auto nBytes = message.size(); From 8835322e2c828fc19070f014f0b38b7dc95b9688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Sat, 2 May 2026 19:55:44 -0400 Subject: [PATCH 2/4] examples: include required headers (, , ) to fix FreeBSD build --- examples/modules.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/modules.cpp b/examples/modules.cpp index 9342d743..eb75c587 100644 --- a/examples/modules.cpp +++ b/examples/modules.cpp @@ -1,5 +1,9 @@ import libremidi; +#include +#include +#include + inline std::ostream& operator<<(std::ostream& s, const libremidi::message& message) { auto nBytes = message.size(); From 8d182e1642bbc0031baa5e9f3c8fd93014532362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Mon, 1 Jun 2026 20:53:59 -0400 Subject: [PATCH 3/4] examples: move std includes before 'import libremidi' to fix FreeBSD modules build --- examples/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/modules.cpp b/examples/modules.cpp index eb75c587..68d7abe6 100644 --- a/examples/modules.cpp +++ b/examples/modules.cpp @@ -1,9 +1,9 @@ -import libremidi; - #include #include #include +import libremidi; + inline std::ostream& operator<<(std::ostream& s, const libremidi::message& message) { auto nBytes = message.size(); From 16f32fdbf27cf207966a412c515f85856cab3bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Mon, 1 Jun 2026 20:53:59 -0400 Subject: [PATCH 4/4] semaphore: explicitly discard nodiscard try_acquire_for result --- include/libremidi/detail/semaphore.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libremidi/detail/semaphore.hpp b/include/libremidi/detail/semaphore.hpp index 8cc0c565..e4034bc7 100644 --- a/include/libremidi/detail/semaphore.hpp +++ b/include/libremidi/detail/semaphore.hpp @@ -12,7 +12,7 @@ struct semaphore_pair_lock // FIXME if jack is not running we can skip this this->sem_needpost.release(); - this->sem_cleanup.try_acquire_for(1s); + (void)this->sem_cleanup.try_acquire_for(1s); } void check_client_released()