diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-17 11:12:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-17 11:12:43 +0800 |
commit | 39024ea8d22d39ddb193fc6839f546d9f56e787d (patch) | |
tree | 6f8940ea010c367745b6440564653afc5c5744d8 | |
parent | 4219464afc72d2b5a166618c66a0aa14a8248a29 (diff) | |
download | gsoc2013-evolution-39024ea8d22d39ddb193fc6839f546d9f56e787d.tar.gz gsoc2013-evolution-39024ea8d22d39ddb193fc6839f546d9f56e787d.tar.zst gsoc2013-evolution-39024ea8d22d39ddb193fc6839f546d9f56e787d.zip |
Fix compiler warnings.
-rw-r--r-- | mail/mail-folder-cache.c | 5 | ||||
-rw-r--r-- | plugins/sa-junk-plugin/em-junk-filter.c | 8 | ||||
-rw-r--r-- | widgets/table/e-tree-table-adapter.c | 10 |
3 files changed, 5 insertions, 18 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c index a1589cec79..ed3d583927 100644 --- a/mail/mail-folder-cache.c +++ b/mail/mail-folder-cache.c @@ -1048,10 +1048,7 @@ int mail_note_get_folder_from_uri(const char *uri, CamelFolder **folderp) gboolean mail_folder_cache_get_folder_info_flags (CamelFolder *folder, int *flags) { - char *uri; - - uri = mail_tools_folder_to_url (folder); - + char *uri = mail_tools_folder_to_url (folder); struct _find_info fi = { uri, NULL, NULL }; if (stores == NULL) diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c index 8a15ce98ac..39efa2f5ac 100644 --- a/plugins/sa-junk-plugin/em-junk-filter.c +++ b/plugins/sa-junk-plugin/em-junk-filter.c @@ -753,10 +753,6 @@ em_junk_sa_report_non_junk (EPlugin *ep, EMJunkHookTarget *target) void em_junk_sa_commit_reports (EPlugin *ep) { - /* Only meaningful if we're using sa-learn */ - if (!no_allow_tell) - return; - char *sync_op = ((get_spamassassin_version () >= 3) ? "--sync": "--rebuild"); char *argv[4] = { "sa-learn", @@ -765,6 +761,10 @@ em_junk_sa_commit_reports (EPlugin *ep) NULL }; + /* Only meaningful if we're using sa-learn */ + if (!no_allow_tell) + return; + d(fprintf (stderr, "em_junk_sa_commit_reports\n")); if (em_junk_sa_is_available (NULL)) { diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c index 10c29fbf10..416f8aa026 100644 --- a/widgets/table/e-tree-table-adapter.c +++ b/widgets/table/e-tree-table-adapter.c @@ -757,16 +757,6 @@ etta_proxy_no_change (ETreeModel *etm, ETreeTableAdapter *etta) e_table_model_no_change(E_TABLE_MODEL(etta)); } -static gboolean -remove_all (gpointer key, gpointer value, gpointer data) -{ - GNode *gn = (GNode *) data; - if (data) - g_free (gn->data); - - return TRUE; -} - static void etta_proxy_rebuilt (ETreeModel *etm, ETreeTableAdapter *etta) { |