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:
parent
6bb33d1f8a
commit
7bffbecd21
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue