Bug 141215 - glib GStaticMutex problem: invalid conversion from '_GMutex**' to 'void**'
Summary: glib GStaticMutex problem: invalid conversion from '_GMutex**' to 'void**'
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Development (show other bugs)
Version: Alpha 4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Gary Ekker
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-03 10:53 UTC by Jan Blunck
Modified: 2006-01-18 03:29 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Testcase for the described bug (484 bytes, application/x-bzip)
2006-01-03 10:55 UTC, Jan Blunck
Details
Proposed patch (845 bytes, patch)
2006-01-03 10:57 UTC, Jan Blunck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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