* m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Cast the NULL pointer.
* tests/test-pthread-rwlock-waitqueue.c (do_test): Likewise.
+2024-11-14 Bruno Haible <bruno@clisp.org>
+
+ pthread-rwlock tests: Fix compilation error on AIX with xlc.
+ * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Cast the NULL pointer.
+ * tests/test-pthread-rwlock-waitqueue.c (do_test): Likewise.
+
2024-11-14 Bruno Haible <bruno@clisp.org>
ftello: Add tests for large files.
# pthread-rwlock.m4
-# serial 7
+# serial 8
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,
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)
{
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)
{