From c3e6a7ce9386c0275e4930cdeee2c5bdffcc77a2 Mon Sep 17 00:00:00 2001 From: mmitchel Date: Wed, 20 Oct 2004 16:56:10 +0000 Subject: [PATCH] * gthr-posix.h (__gthread_active_p): Use __extension__ around cast from function pointer to void *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89336 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/gthr-posix.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a5d71992fc..365675c7769 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-20 Mark Mitchell + + * gthr-posix.h (__gthread_active_p): Use __extension__ around cast + from function pointer to void *. + 2004-10-20 Kaz Kojima PR target/18032 diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 118d3b85e0a..7cab6149f24 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -105,7 +105,8 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t; static inline int __gthread_active_p (void) { - static void *const __gthread_active_ptr = (void *) &pthread_create; + static void *const __gthread_active_ptr + = __extension__ (void *) &pthread_create; return __gthread_active_ptr != 0; } -- 2.11.4.GIT