From b235bd44145b38dc378f2d8fd67475d8193fb71a Mon Sep 17 00:00:00 2001 From: Mark Mitchell 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 *. * gthr-posix.h (__gthread_active_p): Use __extension__ around cast from function pointer to void *. From-SVN: r89336 --- gcc/ChangeLog | 5 +++++ gcc/gthr-posix.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a5d719..365675c 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 118d3b8..7cab614 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.7.4