Bug 141215

Summary: glib GStaticMutex problem: invalid conversion from '_GMutex**' to 'void**'
Product: [openSUSE] SUSE Linux 10.1 Reporter: Jan Blunck <jblunck>
Component: DevelopmentAssignee: Gary Ekker <gekker>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Alpha 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Testcase for the described bug
Proposed patch

Description Jan Blunck 2006-01-03 10:53:50 UTC
On IA64, PPC and PPC64 when using GStaticMutex the compilation of the test program fails with 

holmium:/tmp# make
g++ -save-temps -Wall -ansi -pedantic -O2 gstaticmutex.c -o gstaticmutex `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`
gstaticmutex.c: In constructor ‘Socket::Socket()’:
gstaticmutex.c:15: error: invalid conversion from ‘_GMutex**’ to ‘void**’
gstaticmutex.c:16: error: invalid conversion from ‘_GMutex**’ to ‘void**’
make: *** [gstaticmutex] Error 1
holmium:/tmp#

The proposed patch should fix that.
Comment 1 Jan Blunck 2006-01-03 10:55:43 UTC
Created attachment 61871 [details]
Testcase for the described bug
Comment 2 Jan Blunck 2006-01-03 10:57:48 UTC
Created attachment 61872 [details]
Proposed patch

Most of the stuff in glib is defined as macros but I thought that the usage of an inline function makes more sense here because of the temporary.
Comment 3 Rodrigo Moya 2006-01-03 11:14:41 UTC
Submitted upstream: http://bugzilla.gnome.org/show_bug.cgi?id=325605
Comment 4 JP Rosevear 2006-01-11 04:25:44 UTC
Gary, please grab the upstream patch.
Comment 6 Gary Ekker 2006-01-18 03:29:24 UTC
Thanks for the patch Jan, submitted for beta 2