From: Mark Wielaard Date: Sat, 23 Nov 2024 21:59:21 +0000 (+0100) Subject: none/tests/bug234814.c: sa_handler take an int as argument X-Git-Tag: VALGRIND_3_25_0~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f6cef269b91739f6a2e7f3b4b1e0a429db3e748;p=thirdparty%2Fvalgrind.git none/tests/bug234814.c: sa_handler take an int as argument GCC15 will turn this warning into an error: bug234814.c: In function 'main': bug234814.c:20:18: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 20 | sa.sa_handler = mysigbus; | ^ --- diff --git a/none/tests/bug234814.c b/none/tests/bug234814.c index 16b561fde..11e0f6779 100644 --- a/none/tests/bug234814.c +++ b/none/tests/bug234814.c @@ -9,7 +9,7 @@ const char kSigbus[] = "I caught the SIGBUS signal!\n"; int GLOB = 3; -void mysigbus() { +void mysigbus(int signum) { write(1, kSigbus, sizeof(kSigbus)-1); GLOB--; return;