diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2007-04-25 03:39:18 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-04-25 03:39:18 +0800 |
commit | 63024526868d1241f9edefc2e8cc3112d6a010d3 (patch) | |
tree | 63ba1dc500a110808a8b2290acc9d250c6a2bb3a /embed/ephy-embed-dialog.c | |
parent | 7d697c78f5d8a1659c367a05ca9fe54da7cd9e8e (diff) | |
download | gsoc2013-epiphany-63024526868d1241f9edefc2e8cc3112d6a010d3.tar gsoc2013-epiphany-63024526868d1241f9edefc2e8cc3112d6a010d3.tar.gz gsoc2013-epiphany-63024526868d1241f9edefc2e8cc3112d6a010d3.tar.bz2 gsoc2013-epiphany-63024526868d1241f9edefc2e8cc3112d6a010d3.tar.lz gsoc2013-epiphany-63024526868d1241f9edefc2e8cc3112d6a010d3.tar.xz gsoc2013-epiphany-63024526868d1241f9edefc2e8cc3112d6a010d3.tar.zst gsoc2013-epiphany-63024526868d1241f9edefc2e8cc3112d6a010d3.zip |
Fix some strict-aliasing warnings.
2007-04-24 Diego Escalante Urrelo <diegoe@gnome.org>
* embed/ephy-embed-dialog.c:
Fix some strict-aliasing warnings.
svn path=/trunk/; revision=7012
Diffstat (limited to 'embed/ephy-embed-dialog.c')
-rw-r--r-- | embed/ephy-embed-dialog.c | 10 |
1 files changed, 8 insertions, 2 deletions
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"); } |