From 0fdb109795e4c6f623fdd06b07d5966985b45b1d Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Thu, 2 Dec 2021 16:16:27 -0600 Subject: suppress warning about set_errno being unused on DragonFly Other targets allow this function to be unused, DragonFly just misses out due to providing a specialization. --- library/std/src/sys/unix/os.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/std/src') diff --git a/library/std/src/sys/unix/os.rs b/library/std/src/sys/unix/os.rs index 7686b61b67a..e48b589f7d8 100644 --- a/library/std/src/sys/unix/os.rs +++ b/library/std/src/sys/unix/os.rs @@ -97,6 +97,7 @@ pub fn errno() -> i32 { } #[cfg(target_os = "dragonfly")] +#[allow(dead_code)] pub fn set_errno(e: i32) { extern "C" { #[thread_local] -- cgit 1.4.1-3-g733a5