[mutter] Suppress strict aliasing warning
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [mutter] Suppress strict aliasing warning
- Date: Tue, 16 Jun 2009 15:48:10 -0400 (EDT)
commit ecde490967db00a637f6c1c9c73ff6983fc10de9
Author: Florian Muellner <florian muellner gmail com>
Date: Mon May 11 22:55:19 2009 +0200
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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/mutter/mutter-module.c b/src/compositor/mutter/mutter-module.c
index 65fc50a..974addc 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]