* lib/glthread/thread.h (gl_thread_self_pointer): With POSIX
threads, cast the call to gl_thread_t before casting to void *.
2022-10-30 Paul Eggert <eggert@cs.ucla.edu>
+ thread: pacify gcc -Wbad-function-cast
+ * lib/glthread/thread.h (gl_thread_self_pointer): With POSIX
+ threads, cast the call to gl_thread_t before casting to void *.
+
test-getlogin: pacify gcc -Wshadow
* tests/test-getlogin.h (test_getlogin_result): Rename local.
# define gl_thread_self() \
(pthread_in_use () ? pthread_self () : (pthread_t) 0)
# define gl_thread_self_pointer() \
- (pthread_in_use () ? (void *) pthread_self () : NULL)
+ (pthread_in_use () ? (void *) (pthread_t) pthread_self () : NULL)
# endif
# define gl_thread_exit(RETVAL) \
(void) (pthread_in_use () ? (pthread_exit (RETVAL), 0) : 0)