This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: fix warning in gthr-single.h


This patch adjusts the prototype for __gthread_once so that it matches
the prototype used in every other gthr model.  Without this change, gcc
emits a "function declaration is not a prototype" warning.  Okay for
mainline?

2008-12-04  Ben Elliston  <bje@au.ibm.com>

        * gthr-single.h (__gthread_once): Adjust prototype to match all
        other gthreads models.

Index: gthr-single.h
===================================================================
--- gthr-single.h       (revision 142417)
+++ gthr-single.h       (working copy)
@@ -216,7 +216,7 @@ __gthread_active_p (void)
 }
 
 static inline int 
-__gthread_once (__gthread_once_t *once UNUSED, void (*func) () UNUSED)
+__gthread_once (__gthread_once_t *once UNUSED, void (*func) (void) UNUSED)
 {
   return 0;
 }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]