all: mark no_mangle attribute as unsafe
This commit is contained in:
parent
1cbbc42c5d
commit
0cbaf4493e
4 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#[macro_export]
|
||||
macro_rules! config {
|
||||
($f:path) => {
|
||||
#[no_mangle]
|
||||
#[unsafe(no_mangle)]
|
||||
#[used]
|
||||
pub static mut JAY_CONFIG_ENTRY_V1: $crate::_private::ConfigEntry = {
|
||||
struct X;
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ impl Drop for LibInput {
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
#[unsafe(no_mangle)]
|
||||
unsafe extern "C" fn jay_libinput_log_handler(
|
||||
_libinput: *mut libinput,
|
||||
priority: libinput_log_priority,
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ impl Drop for RenderingFrame {
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
#[unsafe(no_mangle)]
|
||||
unsafe extern "C" fn ___tracy_demangle(
|
||||
mangled: *const std::ffi::c_char,
|
||||
) -> *const std::ffi::c_char {
|
||||
|
|
|
|||
|
|
@ -408,7 +408,7 @@ impl Drop for XkbState {
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
#[unsafe(no_mangle)]
|
||||
unsafe extern "C" fn jay_xkbcommon_log_handler(
|
||||
_ctx: *mut xkb_context,
|
||||
level: xkb_log_level,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue