1
0
Fork 0
forked from wry/wry

all: mark no_mangle attribute as unsafe

This commit is contained in:
Julian Orth 2024-10-20 16:25:12 +02:00
parent 1cbbc42c5d
commit 0cbaf4493e
4 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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,

View file

@ -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 {

View file

@ -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,