Fix function_casts_as_integer warnings in crash handler

Cast function pointers through *const () before converting to
sighandler_t, as required by Rust 1.93+.
This commit is contained in:
Graham McIntire 2026-02-10 15:44:15 -06:00
parent 6bb33d1f8a
commit 7bffbecd21
No known key found for this signature in database

View file

@ -141,9 +141,9 @@ fn install_crash_handler() {
}
}
libc::signal(libc::SIGSEGV, crash_handler as libc::sighandler_t);
libc::signal(libc::SIGBUS, crash_handler as libc::sighandler_t);
libc::signal(libc::SIGABRT, crash_handler as libc::sighandler_t);
libc::signal(libc::SIGSEGV, crash_handler as *const () as libc::sighandler_t);
libc::signal(libc::SIGBUS, crash_handler as *const () as libc::sighandler_t);
libc::signal(libc::SIGABRT, crash_handler as *const () as libc::sighandler_t);
}
}