aboutsummaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-10-20 16:56:10 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-10-20 16:56:10 +0000
commitb235bd44145b38dc378f2d8fd67475d8193fb71a (patch)
treeb88359c6d2afe4ddffe77e19294a7b550d247fea /gcc/gthr-posix.h
parentb939a02360cf41893436921e319c4283f2d6edb5 (diff)
downloadgcc-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.h3
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;
}