From dc830217e89393a766baf67a28b19d61e00c5f53 Mon Sep 17 00:00:00 2001
From: Ben Elliston <bje@au.ibm.com>
Date: Sat, 6 Dec 2008 13:32:29 +0000
Subject: [PATCH] gthr-single.h (__gthread_once): Adjust prototype to match all
 other gthreads models.

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

From-SVN: r142523
---
 gcc/ChangeLog     | 5 +++++
 gcc/gthr-single.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9e37e7fffdb5..984e8ba4239a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-07  Ben Elliston  <bje@au.ibm.com>
+
+	* gthr-single.h (__gthread_once): Adjust prototype to match all
+	other gthreads models.
+
 2008-12-06  Jakub Jelinek  <jakub@redhat.com>
 
 	* config/i386/i386.c (override_options): Use CPU_AMDFAM10
diff --git a/gcc/gthr-single.h b/gcc/gthr-single.h
index 66a9dd86c905..a0a45cb71067 100644
--- a/gcc/gthr-single.h
+++ b/gcc/gthr-single.h
@@ -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;
 }
-- 
GitLab