Skip to content

Commit

Permalink
suppress warning about set_errno being unused on DragonFly
Browse files Browse the repository at this point in the history
Other targets allow this function to be unused, DragonFly just
misses out due to providing a specialization.
  • Loading branch information
rtzoeller committed Dec 2, 2021
1 parent e5038e2 commit 0fdb109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys/unix/os.rs
Expand Up @@ -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]
Expand Down

0 comments on commit 0fdb109

Please sign in to comment.