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 | |
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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gthr-posix.h | 3 |
2 files changed, 7 insertions, 1 deletions
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 <mark@codesourcery.com> + + * gthr-posix.h (__gthread_active_p): Use __extension__ around cast + from function pointer to void *. + 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org> 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; } |