mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
macOS: Fix warning reintroduced in 2ca102193c
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user