OSDN Git Service

* gthr-posix.h (__gthread_active_p): Use __extension__ around cast
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Oct 2004 16:56:10 +0000 (16:56 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Oct 2004 16:56:10 +0000 (16:56 +0000)
from function pointer to void *.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89336 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gthr-posix.h

index 5a5d719..365675c 100644 (file)
@@ -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
index 118d3b8..7cab614 100644 (file)
@@ -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;
 }