Skip to content

Commit aa6f2d9

Browse files
authored
Rollup merge of #91474 - rtzoeller:dfly_set_errno, r=cuviper
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. This fixes a build error for DragonFly.
2 parents f056f0d + 0fdb109 commit aa6f2d9

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)