[evolution-rss] fix compiler warings



commit d92b34d0741fc07cfe74c0b85325ba9c32955199
Author: Lucian Langa <lucilanga gnome org>
Date:   Mon Nov 30 22:35:21 2009 +0200

    fix compiler warings

 src/parser.c |    4 ++--
 src/rss.c    |    7 +++++--
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/parser.c b/src/parser.c
index a3f5a1a..50cd35f 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -1052,6 +1052,7 @@ update_channel(RDF *r)
 	GtkWidget *progress = r->progress;
 	gchar *buf, *safes, *feed_dir, *feed_name;
 	gchar *uid, *msg;
+	GError *err = NULL;
 
 	safes = encode_rfc2047(chn_name);
 	sender = g_strdup_printf("%s <%s>", safes, chn_name);
@@ -1101,11 +1102,10 @@ update_channel(RDF *r)
 		if (!feed_is_new(feed_name, CF->feed_uri)) {
 			ftotal++;
 			if (CF->encl) {
-				GError *err = NULL;
 				fetch_unblocking(
 					CF->encl,
 					textcb,
-					1,
+					GINT_TO_POINTER(1),
 					(gpointer)finish_enclosure,
 					CF,
 					0,
diff --git a/src/rss.c b/src/rss.c
index 675dbf3..a51e466 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -1785,6 +1785,9 @@ EPopupItem rss_menu_items[] = {
 };
 
 void
+rss_menu_items_free(EPopup *ep, GSList *items, void *data);
+
+void
 rss_menu_items_free(EPopup *ep, GSList *items, void *data)
 {
         g_slist_free(items);
@@ -1889,7 +1892,7 @@ gecko_click(GtkMozEmbed *mozembed, gpointer dom_event, gpointer user_data)
         GSList *menus = NULL;
 	gint i=0, menu_size;
 #if EVOLUTION_VERSION < 22900
-        EPopup *emp;
+        EMPopup *emp = NULL;
 #endif
 
 	if (-1 == (button = gecko_get_mouse_event_button (dom_event))) {
@@ -5275,7 +5278,7 @@ finish_enclosure (SoupSession *soup_sess, SoupMessage *msg, create_feed *user_da
 #else
 		fwrite(msg->response_body->data, msg->response_body->length, 1, f);
 #endif
-g_print("siz:%d\n", sizeof(msg));
+g_print("siz:%d\n", (int)(sizeof(msg)));
 		fclose(f);
 		//replace encl with filename generated
 		g_free(user_data->encl);



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