Skip to content

Commit 0fdb109

Browse files
committed
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.
1 parent e5038e2 commit 0fdb109

File tree

1 file changed

+1
-0
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-0
lines changed

library/std/src/sys/unix/os.rs

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ pub fn errno() -> i32 {
9797
}
9898

9999
#[cfg(target_os = "dragonfly")]
100+
#[allow(dead_code)]
100101
pub fn set_errno(e: i32) {
101102
extern "C" {
102103
#[thread_local]

0 commit comments

Comments
 (0)