1
Fork 0

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 commit is contained in:
Ryan Zoeller 2021-12-02 16:16:27 -06:00
parent e5038e2099
commit 0fdb109795

View file

@ -97,6 +97,7 @@ pub fn errno() -> i32 {
} }
#[cfg(target_os = "dragonfly")] #[cfg(target_os = "dragonfly")]
#[allow(dead_code)]
pub fn set_errno(e: i32) { pub fn set_errno(e: i32) {
extern "C" { extern "C" {
#[thread_local] #[thread_local]