aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-06-09 04:17:05 +0800
committerJeremy Katz <katzj@src.gnome.org>2003-06-09 04:17:05 +0800
commite803042418a83e9fe898c06ded27eec014df4224 (patch)
tree8442cbc9f654b67f3bd0a1be8fbce6e150150901
parent44be60f7fd5f2b448938d4d7364e2b0d6c602baf (diff)
downloadgsoc2013-epiphany-e803042418a83e9fe898c06ded27eec014df4224.tar
gsoc2013-epiphany-e803042418a83e9fe898c06ded27eec014df4224.tar.gz
gsoc2013-epiphany-e803042418a83e9fe898c06ded27eec014df4224.tar.bz2
gsoc2013-epiphany-e803042418a83e9fe898c06ded27eec014df4224.tar.lz
gsoc2013-epiphany-e803042418a83e9fe898c06ded27eec014df4224.tar.xz
gsoc2013-epiphany-e803042418a83e9fe898c06ded27eec014df4224.tar.zst
gsoc2013-epiphany-e803042418a83e9fe898c06ded27eec014df4224.zip
Explicitly create pointer to avoid strict aliasing warnings with gcc 3.3.
2003-06-08 Jeremy Katz <katzj@redhat.com> * src/ephy-shell.c (ephy_shell_init): Explicitly create pointer to avoid strict aliasing warnings with gcc 3.3. * src/window-commands.c (window_cmd_help_about): Likewise.
-rw-r--r--ChangeLog6
-rw-r--r--src/ephy-shell.c3
-rw-r--r--src/window-commands.c4
3 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8143c2573..c09e4fe44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-08 Jeremy Katz <katzj@redhat.com>
+
+ * src/ephy-shell.c (ephy_shell_init): Explicitly create pointer to
+ avoid strict aliasing warnings with gcc 3.3.
+ * src/window-commands.c (window_cmd_help_about): Likewise.
+
2003-06-08 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-window.c: (update_favicon_control),
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index a2c374cfa..631e6f44a 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -227,6 +227,7 @@ static void
ephy_shell_init (EphyShell *gs)
{
EphyEmbedSingle *single;
+ EphyShell **ptr = &ephy_shell;
gs->priv = g_new0 (EphyShellPrivate, 1);
gs->priv->session = NULL;
@@ -237,7 +238,7 @@ ephy_shell_init (EphyShell *gs)
ephy_shell = gs;
g_object_add_weak_pointer (G_OBJECT(ephy_shell),
- (gpointer *)&ephy_shell);
+ (gpointer *)ptr);
ephy_debug_init ();
ephy_thread_helpers_init ();
diff --git a/src/window-commands.c b/src/window-commands.c
index fd499f243..2c7b77281 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -747,6 +747,7 @@ window_cmd_help_about (EggAction *action,
GtkWidget *window)
{
static GtkWidget *about = NULL;
+ GtkWidget** ptr;
GdkPixbuf *icon;
const char *icon_path;
GdkPixbuf *logo;
@@ -800,7 +801,8 @@ window_cmd_help_about (EggAction *action,
gtk_window_set_icon (GTK_WINDOW (about), icon);
g_object_unref(icon);
- g_object_add_weak_pointer (G_OBJECT (about), (gpointer *)&about);
+ ptr = &about;
+ g_object_add_weak_pointer (G_OBJECT (about), (gpointer *)ptr);
gtk_widget_show (about);
}