Bugzilla – Bug 141215
glib GStaticMutex problem: invalid conversion from '_GMutex**' to 'void**'
Last modified: 2006-01-18 03:29:24 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.
Created attachment 61871 [details] Testcase for the described bug
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.
Submitted upstream: http://bugzilla.gnome.org/show_bug.cgi?id=325605
Gary, please grab the upstream patch.
Thanks for the patch Jan, submitted for beta 2