From 63024526868d1241f9edefc2e8cc3112d6a010d3 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Tue, 24 Apr 2007 19:39:18 +0000 Subject: Fix some strict-aliasing warnings. 2007-04-24 Diego Escalante Urrelo * embed/ephy-embed-dialog.c: Fix some strict-aliasing warnings. svn path=/trunk/; revision=7012 --- ChangeLog | 5 +++++ embed/ephy-embed-dialog.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 82b844709..4581d7cd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-24 Diego Escalante Urrelo + + * embed/ephy-embed-dialog.c: + Fix some strict-aliasing warnings. + 2007-04-23 Bastien Nocera * lib/ephy-file-helpers.c: (xdg_user_dir_lookup), diff --git a/embed/ephy-embed-dialog.c b/embed/ephy-embed-dialog.c index 4c13165d7..c059afedc 100644 --- a/embed/ephy-embed-dialog.c +++ b/embed/ephy-embed-dialog.c @@ -115,8 +115,10 @@ unset_embed (EphyEmbedDialog *dialog) { if (dialog->priv->embed != NULL) { + EphyEmbed **embedptr; + embedptr = &dialog->priv->embed; g_object_remove_weak_pointer (G_OBJECT (dialog->priv->embed), - (gpointer *)&dialog->priv->embed); + (gpointer *) embedptr); } } @@ -185,10 +187,14 @@ void ephy_embed_dialog_set_embed (EphyEmbedDialog *dialog, EphyEmbed *embed) { + EphyEmbed **embedptr; + unset_embed (dialog); dialog->priv->embed = embed; + + embedptr = &dialog->priv->embed; g_object_add_weak_pointer (G_OBJECT (dialog->priv->embed), - (gpointer *)&dialog->priv->embed); + (gpointer *) embedptr); g_object_notify (G_OBJECT (dialog), "embed"); } -- cgit