pthread-rwlock: Fix configure test for AIX with xlc.
authorBruno Haible <bruno@clisp.org>
Thu, 14 Nov 2024 06:06:25 +0000 (07:06 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 06:58:18 +0000 (07:58 +0100)
* m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Cast the NULL pointer.

ChangeLog
m4/pthread-rwlock.m4

index 3bff4b6c4baf6c0f38efbeec2073cdd852b30645..2ab1a90226675c56db7fd87ebd8b09a32663ab54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-11-14  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        ftello: Fix override on mingw.
index 56dc53eed7777004078db93d1e80ad2f0f9940ea..98d8b7b15c8fba082139b36b2d13dbbec5022441 100644 (file)
@@ -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)
         {