Index: camel/camel-exchange-summary.c
===================================================================
--- camel/camel-exchange-summary.c	(revision 1696)
+++ camel/camel-exchange-summary.c	(working copy)
@@ -310,7 +310,7 @@ message_info_to_db (CamelFolderSummary *
 
 	mir = CAMEL_FOLDER_SUMMARY_CLASS(parent_class)->message_info_to_db (s, info);
 	if (mir) 
-		mir->bdata = g_strdup_printf ("%d-%s %d-%s", einfo->thread_index ? strlen(einfo->thread_index):0 , einfo->thread_index ? einfo->thread_index : "", einfo->href ? strlen(einfo->href):0, einfo->href ? einfo->href:"");
+		mir->bdata = g_strdup_printf ("%d-%s %d-%s", einfo->thread_index ? (int)strlen(einfo->thread_index):0 , einfo->thread_index ? einfo->thread_index : "", einfo->href ? (int)strlen(einfo->href):0, einfo->href ? einfo->href:"");
 
 	return mir;
 }
Index: mail/mail-stub-listener.h
===================================================================
--- mail/mail-stub-listener.h	(revision 1696)
+++ mail/mail-stub-listener.h	(working copy)
@@ -23,7 +23,7 @@ typedef struct _MailStubListenerClass   
 struct _MailStubListener {
 	GObject parent;
 
-	gpointer *stub;
+	gpointer stub;
 	char *socket_path;
 	GIOChannel *channel;
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 1696)
+++ ChangeLog	(working copy)
@@ -1,3 +1,14 @@
+2008-07-21  Milan Crha  <mcrha@redhat.com>
+
+	** Part of fix for bug #544031
+
+	* camel/camel-exchange-summary.c: (message_info_to_db):
+	* mail/mail-stub-listener.h: (struct _MailStubListener):
+	* storage/exchange-component.c: (new_connection):
+	* calendar/e-cal-backend-exchange.c: (build_msg):
+	* calendar/e-cal-backend-exchange-calendar.c: (send_objects):
+	Compiler warnings cleanup.
+
 2008-07-21  Sankar P  <psankar@novell.com>
 
 	Fixes Exchange related crashes due to DB Summary merge
Index: storage/exchange-component.c
===================================================================
--- storage/exchange-component.c	(revision 1696)
+++ storage/exchange-component.c	(working copy)
@@ -328,7 +328,7 @@ new_connection (MailStubListener *listen
 
 	exchange_account_is_offline (account, &mode);
 	if (mode != ONLINE_MODE) {
-		mse = mail_stub_exchange_new (account, cmd_fd, status_fd);
+		mse = MAIL_STUB_EXCHANGE (mail_stub_exchange_new (account, cmd_fd, status_fd));
 		goto end;
 	}
 
Index: calendar/e-cal-backend-exchange.c
===================================================================
--- calendar/e-cal-backend-exchange.c	(revision 1696)
+++ calendar/e-cal-backend-exchange.c	(working copy)
@@ -1830,7 +1830,6 @@ build_msg ( ECalBackendExchange *cbex, E
 	char *from_name = NULL, *from_email = NULL;
 	GSList *attach_list = NULL, *l, *new_attach_list = NULL;
 	char *fname, *file_contents = NULL, *filename, *dest_url, *mime_filename, *attach_file;
-	char *mime_type;
 	int len = 0;
 
 	if (!g_ascii_strcasecmp(e_cal_backend_exchange_get_owner_email (E_CAL_BACKEND_SYNC (cbex)), exchange_account_get_email_id (cbex->account)))
Index: calendar/e-cal-backend-exchange-calendar.c
===================================================================
--- calendar/e-cal-backend-exchange-calendar.c	(revision 1696)
+++ calendar/e-cal-backend-exchange-calendar.c	(working copy)
@@ -2009,7 +2009,7 @@ send_objects (ECalBackendSync *backend, 
 	ECalBackendSyncStatus retval = GNOME_Evolution_Calendar_Success;
 	ECalBackendExchangeBookingResult result;
 	ECalComponent *comp = NULL;
-	icalcomponent *top_level = NULL, *icalcomp, *tzcomp;
+	icalcomponent *top_level = NULL, *icalcomp;
 	icalproperty *prop;
 	icalproperty_method method;
 	GError *error = NULL;
