summaryrefslogtreecommitdiff
path: root/gcc/gthr-dce.h
diff options
context:
space:
mode:
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-30 22:38:43 +0000
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-30 22:38:43 +0000
commit88025ea7075bae6ff88b8894f8aef77a22b46786 (patch)
treec3eae3462fa788da0370dbeaf1b5838304c92fe2 /gcc/gthr-dce.h
parenta94e5126ff25d3ec64cdeb750fc684e54afb4795 (diff)
downloadgcc-88025ea7075bae6ff88b8894f8aef77a22b46786.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42725 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-dce.h')
-rw-r--r--gcc/gthr-dce.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gthr-dce.h b/gcc/gthr-dce.h
index ce77bf12915..96660a334ef 100644
--- a/gcc/gthr-dce.h
+++ b/gcc/gthr-dce.h
@@ -79,7 +79,7 @@ typedef pthread_mutex_t __gthread_mutex_t;
#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)