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
This commit is contained in:
parent
51a6467968
commit
ecde490967
@ -64,9 +64,10 @@ mutter_module_load (GTypeModule *gmodule)
|
|||||||
return FALSE;
|
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",
|
g_module_symbol (priv->lib, "mutter_plugin_register_type",
|
||||||
(gpointer *)®ister_type) &&
|
(gpointer *)(void *)®ister_type) &&
|
||||||
info && register_type)
|
info && register_type)
|
||||||
{
|
{
|
||||||
if (info->version_api != MUTTER_PLUGIN_API_VERSION)
|
if (info->version_api != MUTTER_PLUGIN_API_VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user