summaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.h
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-20 16:56:10 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-20 16:56:10 +0000
commitc3e6a7ce9386c0275e4930cdeee2c5bdffcc77a2 (patch)
treeb88359c6d2afe4ddffe77e19294a7b550d247fea /gcc/gthr-posix.h
parentf95fba26fb74b7fd0466b1f7c4e84cc9eac5fc8e (diff)
downloadgcc-c3e6a7ce9386c0275e4930cdeee2c5bdffcc77a2.tar.gz
* 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
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r--gcc/gthr-posix.h3
1 files changed, 2 insertions, 1 deletions
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;
}