diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-10-20 16:56:10 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-10-20 16:56:10 +0000 |
commit | b235bd44145b38dc378f2d8fd67475d8193fb71a (patch) | |
tree | b88359c6d2afe4ddffe77e19294a7b550d247fea /gcc/gthr-posix.h | |
parent | b939a02360cf41893436921e319c4283f2d6edb5 (diff) | |
download | gcc-b235bd44145b38dc378f2d8fd67475d8193fb71a.zip gcc-b235bd44145b38dc378f2d8fd67475d8193fb71a.tar.gz gcc-b235bd44145b38dc378f2d8fd67475d8193fb71a.tar.bz2 |
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
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r-- | gcc/gthr-posix.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |