diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-06-19 03:06:09 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-06-19 03:06:09 +0000 |
commit | 13ee2e4a4e71c53a00f5b74f57d9bb843242a37d (patch) | |
tree | ff45180a3274bc31a4dbb39be27405f697c57ac9 | |
parent | 30c725e44a0ef577551d7c9f13a26e39f1242f00 (diff) |
removed 'dereferencing type-punned pointer will break strict-aliasing rules' compiler warnings.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3106 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/plugin.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,5 +1,10 @@ 2012-06-19 + * src/plugin.c: removed "dereferencing type-punned pointer will break + strict-aliasing rules" warnings. + +2012-06-19 + * src/filesel.c: removed label warning on non-win32. 2012-06-19 diff --git a/src/plugin.c b/src/plugin.c index 212a736d..c63be7e3 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -366,7 +366,7 @@ gint syl_plugin_load(const gchar *name) return -1; } - if (g_module_symbol(module, "plugin_load", (gpointer *)&load_func)) { + if (g_module_symbol(module, "plugin_load", (gpointer)&load_func)) { if (!syl_plugin_check_version(module)) { g_warning("Version check failed. Skipping: %s", name); g_module_close(module); @@ -430,7 +430,7 @@ void syl_plugin_unload_all(void) SylPluginUnloadFunc unload_func = NULL; if (g_module_symbol(module, "plugin_unload", - (gpointer *)&unload_func)) { + (gpointer)&unload_func)) { g_signal_emit(plugin_obj, plugin_signals[PLUGIN_UNLOAD], 0, module); debug_print("calling plugin_unload() in %s\n", @@ -463,7 +463,7 @@ SylPluginInfo *syl_plugin_get_info(GModule *module) g_module_name(module)); if (g_module_symbol(module, "plugin_info", - (gpointer *)&plugin_info_func)) { + (gpointer)&plugin_info_func)) { debug_print("calling plugin_info() in %s\n", g_module_name(module)); return plugin_info_func(); @@ -486,7 +486,7 @@ gboolean syl_plugin_check_version(GModule *module) g_return_val_if_fail(module != NULL, FALSE); if (g_module_symbol(module, "plugin_interface_version", - (gpointer *)&version_func)) { + (gpointer)&version_func)) { debug_print("calling plugin_interface_version() in %s\n", g_module_name(module)); ver = version_func(); |