diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2011-02-09 00:57:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-02-09 00:57:50 +0800 |
commit | 2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec (patch) | |
tree | e311c2818c68f66126ee6879abd4a080b4b7ad6f /capplet/settings | |
parent | eef8eda70ed8f716eeaae7dd8d9c81640b0dd4f8 (diff) | |
download | gsoc2013-evolution-2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec.tar gsoc2013-evolution-2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec.tar.gz gsoc2013-evolution-2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec.tar.bz2 gsoc2013-evolution-2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec.tar.lz gsoc2013-evolution-2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec.tar.xz gsoc2013-evolution-2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec.tar.zst gsoc2013-evolution-2c31a5bc23cf5a092c0621bf34554ffb2b6ae2ec.zip |
Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
Diffstat (limited to 'capplet/settings')
-rw-r--r-- | capplet/settings/mail-capplet-shell.c | 4 | ||||
-rw-r--r-- | capplet/settings/mail-guess-servers.c | 6 | ||||
-rw-r--r-- | capplet/settings/mail-view.c | 3 |
3 files changed, 2 insertions, 11 deletions
diff --git a/capplet/settings/mail-capplet-shell.c b/capplet/settings/mail-capplet-shell.c index c14af1b609..030de15a94 100644 --- a/capplet/settings/mail-capplet-shell.c +++ b/capplet/settings/mail-capplet-shell.c @@ -202,9 +202,7 @@ static void mail_capplet_shell_construct (MailCappletShell *shell, gint socket_id, gboolean just_druid, gboolean main_loop) { MailCappletShellPrivate *priv = shell->priv; - GtkWidget *tmp; GtkStyle *style = gtk_widget_get_default_style (); - gint window_width = 1024; gchar *custom_dir; gtk_window_set_icon_name ((GtkWindow *)shell, "evolution"); @@ -214,7 +212,6 @@ mail_capplet_shell_construct (MailCappletShell *shell, gint socket_id, gboolean gtk_window_set_type_hint ((GtkWindow *)shell, GDK_WINDOW_TYPE_HINT_NORMAL); if (g_getenv("ANJAL_NO_MAX") == NULL && FALSE) { GdkScreen *scr = gtk_widget_get_screen ((GtkWidget *)shell); - window_width = gdk_screen_get_width (scr); gtk_window_set_default_size ((GtkWindow *)shell, gdk_screen_get_width (scr), gdk_screen_get_height (scr)); gtk_window_set_decorated ((GtkWindow *)shell, FALSE); } else { @@ -247,7 +244,6 @@ mail_capplet_shell_construct (MailCappletShell *shell, gint socket_id, gboolean shell->view = mail_view_new (); shell->view->session = shell->priv->session; gtk_widget_show ((GtkWidget *)shell->view); - tmp = gtk_vbox_new (FALSE, 0); gtk_box_pack_end ((GtkBox *)priv->box, (GtkWidget *)shell->view, TRUE, TRUE, 2); mail_config_init (shell->priv->session); diff --git a/capplet/settings/mail-guess-servers.c b/capplet/settings/mail-guess-servers.c index 66200cc5aa..9df7686356 100644 --- a/capplet/settings/mail-guess-servers.c +++ b/capplet/settings/mail-guess-servers.c @@ -91,7 +91,6 @@ xml_to_gchar (xmlChar *xml, EmailProvider *provider) static SoupMessage * get_url (SoupSession *session, const gchar *url) { - const gchar *name; SoupMessage *msg; const gchar *header; @@ -100,8 +99,6 @@ get_url (SoupSession *session, const gchar *url) soup_session_send_message (session, msg); - name = soup_message_get_uri (msg)->path; - if (SOUP_STATUS_IS_REDIRECTION (msg->status_code)) { header = soup_message_headers_get_one (msg->response_headers, "Location"); @@ -167,7 +164,7 @@ static gboolean parse_message (const gchar *msg, gint length, EmailProvider *provider) { xmlDocPtr doc; - xmlNodePtr node, top; + xmlNodePtr node; doc = xmlReadMemory (msg, length, "file.xml", NULL, 0); @@ -197,7 +194,6 @@ parse_message (const gchar *msg, gint length, EmailProvider *provider) return FALSE; } - top = node; node = node->children; while (node) { if (strcmp ((gchar *)node->name, "incomingServer") == 0) { diff --git a/capplet/settings/mail-view.c b/capplet/settings/mail-view.c index afe65fd448..356916d9e9 100644 --- a/capplet/settings/mail-view.c +++ b/capplet/settings/mail-view.c @@ -118,7 +118,6 @@ static void mail_view_class_init (MailViewClass *klass) { GObjectClass * object_class = G_OBJECT_CLASS (klass); - AnjalMailViewClass *pclass; signals[VIEW_NEW] = g_signal_new ("view-new", G_OBJECT_CLASS_TYPE (object_class), @@ -128,7 +127,7 @@ mail_view_class_init (MailViewClass *klass) g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); - pclass = mail_view_parent_class = g_type_class_peek_parent (klass); + mail_view_parent_class = g_type_class_peek_parent (klass); ((AnjalMailViewClass *)klass)->set_folder_uri = mv_set_folder_uri; ((AnjalMailViewClass *)klass)->set_folder_tree = set_folder_tree; ((AnjalMailViewClass *)klass)->set_search = set_search; |