about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2021-12-02 16:16:27 -0600
committerRyan Zoeller <rtzoeller@rtzoeller.com>2021-12-02 16:16:27 -0600
commit0fdb109795e4c6f623fdd06b07d5966985b45b1d (patch)
tree5aa3be0d31cff4f2973ab934b8ca00d6b26a8054 /library/std
parente5038e20999eef35260b070189883edc2a8a34b2 (diff)
downloadrust-0fdb109795e4c6f623fdd06b07d5966985b45b1d.tar.gz
rust-0fdb109795e4c6f623fdd06b07d5966985b45b1d.zip
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.
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/sys/unix/os.rs1
1 files changed, 1 insertions, 0 deletions
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]