From 12152012d41e656bc099929a1095c2867e12530a Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Tue, 14 Nov 2023 10:57:34 +0100 Subject: [PATCH] Fix macOS build --- src/unix.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unix.rs b/src/unix.rs index 4cb78a9..aaa5170 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -335,6 +335,10 @@ impl ThreadPriority { }; match policy { + #[cfg_attr( + not(any(target_os = "linux", target_os = "android")), + allow(unused_variables) + )] ThreadSchedulePolicy::Normal(normal) => { cfg_if::cfg_if! { if #[cfg(any(target_os = "linux", target_os = "android"))] {