Bug 556101 – static mutex yields warnings with g++ Reviewed by Tim Janik

2008-10-13  Sven Herzberg  <sven@imendio.com>

	Bug 556101 – static mutex yields warnings with g++
	Reviewed by Tim Janik

	* configure.in: added an intermediate cast to gpointer


svn path=/trunk/; revision=7598
This commit is contained in:
Sven Herzberg 2008-10-13 12:54:13 +00:00 committed by Sven Herzberg
parent 630f89fb1a
commit 62510425df
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-10-13 Sven Herzberg <sven@imendio.com>
Bug 556101 static mutex yields warnings with g++
Reviewed by Tim Janik
* configure.in: added an intermediate cast to gpointer
2008-10-13 Christian Persch <chpe@gnome.org>
Bug 555311 format not a string literal and no format arguments

View File

@ -2892,7 +2892,7 @@ struct _GStaticMutex
};
#define G_STATIC_MUTEX_INIT { NULL, { { $g_mutex_contents} } }
#define g_static_mutex_get_mutex(mutex) \\
(g_thread_use_default_impl ? ((GMutex*) ((mutex)->static_mutex.pad)) : \\
(g_thread_use_default_impl ? ((GMutex*)(gpointer) ((mutex)->static_mutex.pad)) : \\
g_static_mutex_get_mutex_impl_shortcut (&((mutex)->runtime_mutex)))
_______EOF
else