mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 16:03:40 +02:00
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:
committed by
Sven Herzberg
parent
630f89fb1a
commit
62510425df
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user