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 {