aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2006-03-03 05:23:34 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2006-03-03 05:23:34 +0800
commit8dc95a5c584d8fdb99afec102702bd8801b95266 (patch)
tree2b0682233b70018437c4bc140a3d32f1ad45d9d6 /embed
parent4f2b380361e6bf153a04cc80dba762733a5963c1 (diff)
downloadgsoc2013-epiphany-8dc95a5c584d8fdb99afec102702bd8801b95266.tar
gsoc2013-epiphany-8dc95a5c584d8fdb99afec102702bd8801b95266.tar.gz
gsoc2013-epiphany-8dc95a5c584d8fdb99afec102702bd8801b95266.tar.bz2
gsoc2013-epiphany-8dc95a5c584d8fdb99afec102702bd8801b95266.tar.lz
gsoc2013-epiphany-8dc95a5c584d8fdb99afec102702bd8801b95266.tar.xz
gsoc2013-epiphany-8dc95a5c584d8fdb99afec102702bd8801b95266.tar.zst
gsoc2013-epiphany-8dc95a5c584d8fdb99afec102702bd8801b95266.zip
Fix gcc 4.1 warnings (dereferencing type-punned pointer will break
2006-03-02 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/ephy-embed-shell.c:(ephy_embed_shell_dispose): * src/ephy-encoding-menu.c: (ephy_encoding_menu_view_dialog_cb): * src/ephy-history-window.c: (cmd_clear), (ephy_history_window_finalize): * src/ephy-shell.c: (ephy_shell_get_pdm_dialog),(ephy_shell_get_prefs_dialog), (ephy_shell_get_print_setup_dialog): * src/prefs-dialog.c: (prefs_dialog_finalize), (font_prefs_button_clicked_cb), (language_editor_add_button_clicked_cb): * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_finalize): Fix gcc 4.1 warnings (dereferencing type-punned pointer will break strict-aliasing rules).
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-shell.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 6474fb2ed..1ce52db44 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -100,10 +100,11 @@ ephy_embed_shell_dispose (GObject *object)
if (priv->downloader_view != NULL)
{
+ DownloaderView **downloader_view = &priv->downloader_view;
LOG ("Unref downloader");
g_object_remove_weak_pointer
(G_OBJECT (priv->downloader_view),
- (gpointer *) &priv->downloader_view);
+ (gpointer *) downloader_view);
g_object_unref (priv->downloader_view);
priv->downloader_view = NULL;
}
@@ -193,10 +194,12 @@ ephy_embed_shell_get_downloader_view (EphyEmbedShell *shell)
if (shell->priv->downloader_view == NULL)
{
+ DownloaderView **downloader_view;
shell->priv->downloader_view = downloader_view_new ();
+ downloader_view = &shell->priv->downloader_view;
g_object_add_weak_pointer
(G_OBJECT(shell->priv->downloader_view),
- (gpointer *)&shell->priv->downloader_view);
+ (gpointer *) downloader_view);
}
return G_OBJECT (shell->priv->downloader_view);