to target type to allow ISO C++ compiler to accept it.
* gthr-dce.h (__gthread_active_ptr): Likewise.
* gthr-solaris.h (__gthread_active_ptr): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42725
138bc75d-0d04-0410-961f-
82ee72b054a4
+2001-05-30 Loren J. Rittle <ljrittle@acm.org>
+ John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * gthr-posix.h (__gthread_active_ptr): Cast function pointer
+ to target type to allow ISO C++ compiler to accept it.
+ * gthr-dce.h (__gthread_active_ptr): Likewise.
+ * gthr-solaris.h (__gthread_active_ptr): Likewise.
+
2001-05-30 Neil Booth <neil@daikokuya.demon.co.uk>
* cpplex.c (_cpp_lex_token): Revert patch of 16 May 2001
#pragma weak pthread_yield
#endif
-static void *__gthread_active_ptr = &pthread_create;
+static void *__gthread_active_ptr = (void *) &pthread_create;
static inline int
__gthread_active_p (void)
#pragma weak pthread_setschedparam
#endif
-static void *__gthread_active_ptr = &pthread_create;
+static void *__gthread_active_ptr = (void *) &pthread_create;
static inline int
__gthread_active_p (void)
/* This will not actually work in Solaris 2.5, since libc contains
dummy symbols of all thr_* routines. */
-static void *__gthread_active_ptr = &thr_create;
+static void *__gthread_active_ptr = (void *) &thr_create;
static inline int
__gthread_active_p (void)