From ecde490967db00a637f6c1c9c73ff6983fc10de9 Mon Sep 17 00:00:00 2001 From: Florian Muellner Date: Mon, 11 May 2009 22:55:19 +0200 Subject: [PATCH] Suppress strict aliasing warning Fix a (harmless) warning about strict aliasing that some GCC versions give when using g_module_symbol(). http://bugzilla.gnome.org/show_bug.cgi?id=582243 --- src/compositor/mutter/mutter-module.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compositor/mutter/mutter-module.c b/src/compositor/mutter/mutter-module.c index 65fc50a91..974addc1b 100644 --- a/src/compositor/mutter/mutter-module.c +++ b/src/compositor/mutter/mutter-module.c @@ -64,9 +64,10 @@ mutter_module_load (GTypeModule *gmodule) return FALSE; } - if (g_module_symbol (priv->lib, "mutter_plugin_version", (gpointer *)&info) && + if (g_module_symbol (priv->lib, "mutter_plugin_version", + (gpointer *)(void *)&info) && g_module_symbol (priv->lib, "mutter_plugin_register_type", - (gpointer *)®ister_type) && + (gpointer *)(void *)®ister_type) && info && register_type) { if (info->version_api != MUTTER_PLUGIN_API_VERSION)