This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: fix warning in gthr-single.h
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 04 Dec 2008 13:14:41 +1100
- Subject: 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;
}