From: David Schleef Date: Sun, 18 May 2003 22:44:11 +0000 (+0000) Subject: Fix aliasing warning from gcc-3.3 X-Git-Tag: BRANCH-ERROR-ROOT~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=d2e26864112b97c368ac2f8a9fdc32b9e1551089;p=platform%2Fupstream%2Fgstreamer.git Fix aliasing warning from gcc-3.3 Original commit message from CVS: Fix aliasing warning from gcc-3.3 --- diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 5795727..6113e49 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -179,7 +179,11 @@ gst_plugin_load_plugin (GstPlugin *plugin, GError **error) module = g_module_open (filename, G_MODULE_BIND_LAZY); if (module != NULL) { - if (g_module_symbol (module, "plugin_desc", (gpointer *)&desc)) { + gpointer ptr; + + if (g_module_symbol (module, "plugin_desc", &ptr)) { + desc = (GstPluginDesc *)ptr; + GST_DEBUG (GST_CAT_PLUGIN_LOADING, "plugin \"%s\" loaded, called entry function...", filename); plugin->filename = g_strdup (filename);