From 85e3c2e1129a1d0d3d5dd0c1bdab883ea7b027b5 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 20 Apr 2011 01:14:05 -0700 Subject: Remove a few GCC 4.6.0 warnings --- src/bookmarks/ephy-bookmarks.c | 5 +---- src/ephy-shell.c | 6 ------ src/ephy-toolbar.c | 4 +--- src/prefs-dialog.c | 4 +--- 4 files changed, 3 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index ec199dc5f..9708da5cf 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -119,10 +119,7 @@ static char *impl_resolve_address (EphyBookmarks*, const char*, const char*); static void ephy_local_bookmarks_start_client (EphyBookmarks *bookmarks); #endif -G_DEFINE_TYPE_WITH_CODE (EphyBookmarks, ephy_bookmarks, G_TYPE_OBJECT, - volatile GType flags_type; /* work around gcc's optimiser */ - /* make sure the flags type is known */ - flags_type = EPHY_TYPE_BOOKMARK_PROPERTY;) +G_DEFINE_TYPE (EphyBookmarks, ephy_bookmarks, G_TYPE_OBJECT) static void ephy_bookmarks_init_defaults (EphyBookmarks *eb) diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 6fddf9d2d..ef45fb493 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -685,11 +685,8 @@ ephy_shell_get_net_monitor (EphyShell *shell) static void toolwindow_show_cb (GtkWidget *widget, EphyShell *es) { - EphySession *session; - LOG ("Ref shell for %s", G_OBJECT_TYPE_NAME (widget)); - session = EPHY_SESSION (ephy_shell_get_session (es)); ephy_session_add_window (ephy_shell->priv->session, GTK_WINDOW (widget)); g_object_ref (ephy_shell); } @@ -697,11 +694,8 @@ toolwindow_show_cb (GtkWidget *widget, EphyShell *es) static void toolwindow_hide_cb (GtkWidget *widget, EphyShell *es) { - EphySession *session; - LOG ("Unref shell for %s", G_OBJECT_TYPE_NAME (widget)); - session = EPHY_SESSION (ephy_shell_get_session (es)); ephy_session_remove_window (ephy_shell->priv->session, GTK_WINDOW (widget)); g_object_unref (ephy_shell); } diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index 84191cee4..4bec11460 100644 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -585,9 +585,7 @@ ephy_toolbar_set_zoom (EphyToolbar *toolbar, static void ephy_toolbar_init (EphyToolbar *toolbar) { - EphyToolbarPrivate *priv; - - priv = toolbar->priv = EPHY_TOOLBAR_GET_PRIVATE (toolbar); + toolbar->priv = EPHY_TOOLBAR_GET_PRIVATE (toolbar); egg_editable_toolbar_set_primary_class (EGG_EDITABLE_TOOLBAR (toolbar), TRUE, NULL); } diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 296c6b18c..8c0cd31e3 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -223,7 +223,7 @@ create_node_combo (EphyDialog *dialog, GtkComboBox *combo; GtkCellRenderer *renderer; char *code; - int title_col, data_col; + int title_col; code = g_settings_get_string (EPHY_SETTINGS_WEB, EPHY_PREFS_WEB_DEFAULT_ENCODING); @@ -243,8 +243,6 @@ create_node_combo (EphyDialog *dialog, title_col = ephy_tree_model_node_add_prop_column (nodemodel, G_TYPE_STRING, EPHY_NODE_ENCODING_PROP_TITLE_ELIDED); - data_col = ephy_tree_model_node_add_prop_column - (nodemodel, G_TYPE_STRING, EPHY_NODE_ENCODING_PROP_ENCODING); sortmodel = ephy_tree_model_sort_new (GTK_TREE_MODEL (nodemodel)); -- cgit v1.2.3