From 634f0dcc45282c40eb2c872bdf734ce58b44f123 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 14 Nov 2024 07:06:25 +0100 Subject: [PATCH] pthread-rwlock: Fix configure test for AIX with xlc. * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Cast the NULL pointer. --- ChangeLog | 5 +++++ m4/pthread-rwlock.m4 | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3bff4b6c4b..2ab1a90226 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-11-14 Bruno Haible + + pthread-rwlock: Fix configure test for AIX with xlc. + * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Cast the NULL pointer. + 2024-11-14 Bruno Haible ftello: Fix override on mingw. diff --git a/m4/pthread-rwlock.m4 b/m4/pthread-rwlock.m4 index 56dc53eed7..98d8b7b15c 100644 --- a/m4/pthread-rwlock.m4 +++ b/m4/pthread-rwlock.m4 @@ -1,4 +1,4 @@ -# pthread-rwlock.m4 serial 6 +# pthread-rwlock.m4 serial 6.1 dnl Copyright (C) 2019-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -267,7 +267,7 @@ do_test (const char *rw_string) err = pthread_create (&threads[i], NULL, rw_string[i] == 'R' ? reader_func : rw_string[i] == 'W' ? writer_func : - (abort (), NULL), + (abort (), (void * (*) (void *)) NULL), &locals[i]); if (err) { -- 2.39.5