From 7bffbecd21da381c5566c790a3e2567dcc862b4b Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 10 Feb 2026 15:44:15 -0600 Subject: [PATCH] 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+. --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index ab4741f..c67f492 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); } }