Re-add #[allow(unused)] attr
This commit is contained in:
parent
6155b9a772
commit
a41c5f9c38
@ -89,6 +89,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(target_os = "vxworks", target_os = "horizon", target_os = "emscripten"))]
|
#[cfg(any(target_os = "vxworks", target_os = "horizon", target_os = "emscripten"))]
|
||||||
|
#[cfg_attr(target_family = "wasm", allow(unused))] // might remain unused depending on target details (e.g. wasm32-unknown-emscripten)
|
||||||
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
|
pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
|
||||||
use crate::sys_common::thread_local_dtor::register_dtor_fallback;
|
use crate::sys_common::thread_local_dtor::register_dtor_fallback;
|
||||||
register_dtor_fallback(t, dtor);
|
register_dtor_fallback(t, dtor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user