From 6f0894c652d075027a9e19c1bb7aa50c3f6659dd Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 28 Jan 2024 18:33:24 -0600 Subject: [PATCH] macOS: Fix warning reintroduced in 2ca102193c88578 --- src/topic_monitor.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/topic_monitor.rs b/src/topic_monitor.rs index de9b7d1f1..95bb17708 100644 --- a/src/topic_monitor.rs +++ b/src/topic_monitor.rs @@ -261,6 +261,9 @@ pub fn die(&self, msg: &str) { } } +// sem_destroy has been deprecated since macOS 10.10 but we only use it under Linux so silence the +// warning. +#[cfg_attr(target_os = "macos", allow(deprecated))] impl Drop for binary_semaphore_t { fn drop(&mut self) { if let Self::Semaphore(sem) = self {