diff options
author | Bruno Haible <bruno@clisp.org> | 2019-12-08 13:10:23 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-12-08 13:10:23 +0100 |
commit | 45819c74f6994d901b733883e81d968c10647420 (patch) | |
tree | da0bad39ec8e40b6a9ab817222d4cdfea68fbd5e /lib/threads.in.h | |
parent | 03cd507fb88a3a265978cfe0a367cf69e305c54e (diff) | |
download | gnulib-45819c74f6994d901b733883e81d968c10647420.tar.gz |
Fix compilation errors in C++ mode on FreeBSD.
* lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
* tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
* lib/threads.in.h (thrd_exit): Likewise.
* tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
Diffstat (limited to 'lib/threads.in.h')
-rw-r--r-- | lib/threads.in.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/threads.in.h b/lib/threads.in.h index 31362579c2..5fcbb09039 100644 --- a/lib/threads.in.h +++ b/lib/threads.in.h @@ -268,9 +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)); +/* Need to cast because of AIX with xlclang++. */ +_GL_CXXALIAS_SYS_CAST (thrd_exit, void, (int)); _GL_CXXALIASWARN (thrd_exit); #elif defined GNULIB_POSIXCHECK # undef thrd_exit |