[evolution-rss] compiler warnings cleanup



commit d5e0d852dd0bbf4080549c5ba2dba1062e6b50df
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed May 5 22:03:03 2010 +0300

    compiler warnings cleanup

 src/misc.c               |    3 +--
 src/parser.c             |    5 +++--
 src/rss-config-factory.c |    1 -
 src/rss.c                |    2 +-
 src/rss.h                |    4 ++--
 5 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 6d6424a..797fdae 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -539,8 +539,7 @@ void
 feed_remove_status_line(gchar *file_name, gchar *needle)
 {
 	gchar rfeed[513];
-	FILE *fr, *fw;
-	int occ = 0;
+	FILE *fr, *fw = NULL;
 	gchar *tmpneedle, *port, *tp;
 	gchar *tmp = e_mktemp("evo-rss-XXXXXX");
 	if (tmp) {
diff --git a/src/parser.c b/src/parser.c
index ba103d7..8c15336 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -1095,7 +1095,7 @@ update_channel(RDF *r)
 	GArray *item = r->item;
 	GtkWidget *progress = r->progress;
 	gchar *buf, *safes, *feed_dir, *feed_name;
-	gchar *uid, *msg;
+	gchar *msg;
 	gboolean freeze = FALSE;
 	CamelFolder *mail_folder = NULL;
 	gchar *article_uid = NULL;
@@ -1135,7 +1135,8 @@ update_channel(RDF *r)
 			r->uids = g_array_new(TRUE, TRUE, sizeof(gpointer));
 		}
 
-		CF = parse_channel_line(el->children, feed_name, main_date, &article_uid);
+		CF = parse_channel_line(el->children,
+			feed_name, main_date, &article_uid);
 		g_array_append_val(r->uids, article_uid);
 		if (!CF) continue;
 		CF->feedid = g_strdup(buf);
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index d00ff9f..db3ac28 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -1372,7 +1372,6 @@ process_dialog_edit(add_feed *feed, gchar *url, gchar *feed_name)
 	gpointer key = lookup_key(feed_name);
 	gchar *prefix = NULL;
 	hrfeed *saved_feed;
-	gpointer md5;
 	CamelException ex;
 	CamelStore *store = rss_component_peek_local_store();
 	GtkWidget *msg_feeds, *progress;
diff --git a/src/rss.c b/src/rss.c
index d307f59..e13142d 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -3016,7 +3016,7 @@ void org_gnome_cooly_folder_refresh(void *ep, EShellView *shell_view)
 	folder = em_folder_tree_get_selected_folder (folder_tree);
 	g_return_if_fail (folder != NULL);
 #if (DATASERVER_VERSION >= 2031001)
-	folder_name = camel_folder_get_full_name(folder);
+	folder_name = (gchar *)camel_folder_get_full_name(folder);
 #else
 	folder_name = folder->full_name;
 #endif
diff --git a/src/rss.h b/src/rss.h
index e45fef9..130794a 100644
--- a/src/rss.h
+++ b/src/rss.h
@@ -233,9 +233,9 @@ typedef struct ADD_FEED {
 	guint		update;	// feed update method global; ttl; disabled
 	gboolean	renamed;
 	gboolean	edit;
-	GFunc		*ok;
+	GFunc		ok;
 	void		*ok_arg;
-	GFunc		*cancelable;
+	GFunc		cancelable;
 	void		*cancelable_arg;
 } add_feed;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]