summaryrefslogtreecommitdiff
path: root/glib/gthread.h
diff options
context:
space:
mode:
authorSebastian Dröge <sdroege@src.gnome.org>2008-06-20 11:29:25 +0000
committerSebastian Dröge <sdroege@src.gnome.org>2008-06-20 11:29:25 +0000
commit304c030d02aaff375e2641d04fa1ebb577bbea2e (patch)
tree6ef7bc30e29ddf8b7f4cecadd6fba6d20e7173e4 /glib/gthread.h
parentee5c5df6b1ed006d67bbf955c62ec36b9ac5aef4 (diff)
downloadglib-304c030d02aaff375e2641d04fa1ebb577bbea2e.tar.gz
Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
* configure.in: * glib/gthread.h: Revert previous patch as it doesn't improve the situation and results in other warnings. svn path=/trunk/; revision=7064
Diffstat (limited to 'glib/gthread.h')
-rw-r--r--glib/gthread.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/glib/gthread.h b/glib/gthread.h
index cfa12d042..af1e301eb 100644
--- a/glib/gthread.h
+++ b/glib/gthread.h
@@ -144,15 +144,9 @@ void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable);
/* internal function for fallback static mutex implementation */
GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex);
-#ifdef __cplusplus
#define g_static_mutex_get_mutex_impl_shortcut(mutex) \
(g_atomic_pointer_get ((gpointer*)(void*)mutex) ? *(mutex) : \
g_static_mutex_get_mutex_impl (mutex))
-#else
-#define g_static_mutex_get_mutex_impl_shortcut(mutex) \
- (g_atomic_pointer_get (mutex) ? *(mutex) : \
- g_static_mutex_get_mutex_impl (mutex))
-#endif
/* shorthands for conditional and unconditional function calls */