+2020-06-16 Bruno Haible <bruno@clisp.org>
+
+ thread: Avoid possible compiler warnings in uses of gl_thread_exit.
+ * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
+
2020-06-16 Bruno Haible <bruno@clisp.org>
thread, thrd: Avoid a compiler warning.
(pthread_in_use () ? (void *) pthread_self () : NULL)
# endif
# define gl_thread_exit(RETVAL) \
- (pthread_in_use () ? pthread_exit (RETVAL) : 0)
+ (void) (pthread_in_use () ? (pthread_exit (RETVAL), 0) : 0)
# if HAVE_PTHREAD_ATFORK
# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) \
# define gl_thread_self() 0
# define gl_thread_self_pointer() \
((void *) gl_thread_self ())
-# define gl_thread_exit(RETVAL) 0
+# define gl_thread_exit(RETVAL) (void)0
# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0
#endif