macOS: Fix warning reintroduced in 2ca102193c

This commit is contained in:
Mahmoud Al-Qudsi
2024-01-28 18:33:24 -06:00
parent f16c132f3c
commit 6f0894c652

View File

@@ -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 {