Commit b235bd44 by Mark Mitchell Committed by Mark Mitchell

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
parent b939a023
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
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment