]> Savannah Git Hosting - gnulib.git/commitdiff
Fix compilation errors in C++ mode with xlclang++ on AIX.
authorBruno Haible <bruno@clisp.org>
Thu, 5 Dec 2019 08:50:01 +0000 (09:50 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 5 Dec 2019 08:50:49 +0000 (09:50 +0100)
* lib/pthread.in.h (pthread_exit): Add comment.
* lib/threads.in.h (thrd_exit): Likewise.

lib/pthread.in.h
lib/threads.in.h

index c94638b7e417b7cf3f206142283b76b4a64443a8..a2c76e44fa151b39ef369043993995b39f0ca8e2 100644 (file)
@@ -689,6 +689,8 @@ _GL_CXXALIAS_RPL (pthread_exit, _Noreturn void, (void *value));
 #  if !@HAVE_PTHREAD_EXIT@
 _GL_FUNCDECL_SYS (pthread_exit, _Noreturn void, (void *value));
 #  endif
+/* Need to cast, because on AIX with xlclang++, the return type is
+                                     void.  */
 _GL_CXXALIAS_SYS_CAST (pthread_exit, _Noreturn void, (void *value));
 # endif
 _GL_CXXALIASWARN (pthread_exit);
index 39ccead948f6e41c5016ec126cad4b58ced099c8..1d28351efa54d34bb9c17257db2729642ffb0a62 100644 (file)
@@ -268,6 +268,8 @@ _GL_WARN_ON_USE (thrd_join, "thrd_join is unportable - "
 # if !@HAVE_THREADS_H@
 _GL_FUNCDECL_SYS (thrd_exit, _Noreturn void, (int));
 # endif
+/* Need to cast, because on AIX with xlclang++, the return type is
+                                  void.  */
 _GL_CXXALIAS_SYS_CAST (thrd_exit, _Noreturn void, (int));
 _GL_CXXALIASWARN (thrd_exit);
 #elif defined GNULIB_POSIXCHECK