From f5fa23843eb971689d7d9e62fa879c98e038ffc6 Mon Sep 17 00:00:00 2001 From: "Loren J. Rittle" Date: Wed, 30 May 2001 22:38:43 +0000 Subject: gthr-posix.h (__gthread_active_ptr): Cast function pointer to target type to allow ISO C++ compiler to accept it. * 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. Co-Authored-By: John David Anglin From-SVN: r42725 --- gcc/gthr-posix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gthr-posix.h') diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 7ffb0a0..b5a4637 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -75,7 +75,7 @@ typedef pthread_mutex_t __gthread_mutex_t; #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) -- cgit v1.1