diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-15 23:16:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-16 10:50:05 +0800 |
commit | cae22334fa6bc395ccc421b09e0af94c89297c41 (patch) | |
tree | 84881f467c0448db044d8bb3533e044a7152bb2b /e-util | |
parent | d37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff) | |
download | gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.gz gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.zst gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.zip |
Remove dead assignments found by clang.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-alert-activity.c | 1 | ||||
-rw-r--r-- | e-util/e-alert-dialog.c | 2 | ||||
-rw-r--r-- | e-util/e-bconf-map.c | 2 | ||||
-rw-r--r-- | e-util/e-pilot-map.c | 3 | ||||
-rw-r--r-- | e-util/e-signature-list.c | 1 | ||||
-rw-r--r-- | e-util/e-signature-utils.c | 2 |
6 files changed, 3 insertions, 8 deletions
diff --git a/e-util/e-alert-activity.c b/e-util/e-alert-activity.c index 23f747fe1f..b279b87248 100644 --- a/e-util/e-alert-activity.c +++ b/e-util/e-alert-activity.c @@ -112,7 +112,6 @@ alert_activity_constructed (GObject *object) alert_activity = E_ALERT_ACTIVITY (object); message_dialog = e_alert_activity_get_message_dialog (alert_activity); - object = G_OBJECT (message_dialog); alert = e_alert_dialog_get_alert (E_ALERT_DIALOG (message_dialog)); primary_text = e_alert_get_primary_text (alert); secondary_text = e_alert_get_secondary_text (alert); diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c index 5f8cdc178d..d39d60dd4a 100644 --- a/e-util/e-alert-dialog.c +++ b/e-util/e-alert-dialog.c @@ -153,7 +153,7 @@ e_alert_dialog_constructed (GObject *obj) gtk_window_set_destroy_with_parent((GtkWindow *)self, TRUE); if (e_alert_peek_help_uri (alert)) { - w = gtk_dialog_add_button((GtkDialog*) self, GTK_STOCK_HELP, GTK_RESPONSE_HELP); + gtk_dialog_add_button((GtkDialog*) self, GTK_STOCK_HELP, GTK_RESPONSE_HELP); g_signal_connect(self, "response", G_CALLBACK(dialog_response_cb), NULL); } diff --git a/e-util/e-bconf-map.c b/e-util/e-bconf-map.c index 6b6f16d4cf..d0bd526715 100644 --- a/e-util/e-bconf-map.c +++ b/e-util/e-bconf-map.c @@ -54,7 +54,7 @@ static gchar hexnib[256] = { gchar * e_bconf_hex_decode (const gchar *val) { - const guchar *p = (const guchar *) val; + const guchar *p; gchar *o, *res; o = res = g_malloc (strlen (val) / 2 + 1); diff --git a/e-util/e-pilot-map.c b/e-util/e-pilot-map.c index e557388352..2c047d60f6 100644 --- a/e-util/e-pilot-map.c +++ b/e-util/e-pilot-map.c @@ -256,7 +256,6 @@ e_pilot_map_remove_by_pid (EPilotMap *map, guint32 pid) void e_pilot_map_remove_by_uid (EPilotMap *map, const gchar *uid) { - EPilotMapPidNode *pnode; EPilotMapUidNode *unode; g_return_if_fail (map != NULL); @@ -266,8 +265,6 @@ e_pilot_map_remove_by_uid (EPilotMap *map, const gchar *uid) if (unode == NULL) return; - pnode = g_hash_table_lookup (map->pid_map, &unode->pid); - g_hash_table_remove (map->pid_map, &unode->pid); g_hash_table_remove (map->uid_map, uid); } diff --git a/e-util/e-signature-list.c b/e-util/e-signature-list.c index 34b45be5ba..5fd33e2325 100644 --- a/e-util/e-signature-list.c +++ b/e-util/e-signature-list.c @@ -221,7 +221,6 @@ gconf_signatures_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, if (!have_autogen) { new_sigs = add_autogen (signature_list, new_sigs); - have_autogen = TRUE; resave = TRUE; } diff --git a/e-util/e-signature-utils.c b/e-util/e-signature-utils.c index 4ae5ac2c8f..b28c0cb985 100644 --- a/e-util/e-signature-utils.c +++ b/e-util/e-signature-utils.c @@ -331,7 +331,7 @@ e_run_signature_script (const gchar *filename) /* ...still hanging, set phasers to KILL. */ kill (pid, SIGKILL); sleep (1); - result = waitpid (pid, &status, WNOHANG); + waitpid (pid, &status, WNOHANG); } } |