[evolution-patches] Patch: various warning fixes for evolution-data-server



The attach patch fixes compilation warnings caused by either missing
includes, missing cast or bad return values in evolution-data-server
module (concerned are groupwise server, libedatabook, libecal and ebook-
test).
-- 
Frederic Crozat <fcrozat mandrakesoft com>
Mandrakesoft
? warnings.patch
? calendar/libical/src/python/Makefile
? calendar/libical/src/python/Makefile.in
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/ChangeLog,v
retrieving revision 1.151
diff -u -p -r1.151 ChangeLog
--- ChangeLog	23 Aug 2004 11:08:07 -0000	1.151
+++ ChangeLog	25 Aug 2004 09:30:04 -0000
@@ -1,3 +1,15 @@
+2004-08-25  Frederic Crozat  <fcrozat mandrakesoft com>
+
+	* libedataserver/e-file-cache.c: (add_key_to_list),
+	(add_object_to_list):
+	Add missing include, fix warnings.
+
+	* libedataserver/e-util.c: add missing include.
+
+	* servers/groupwise/e-gw-connection.c:
+	(e_gw_connection_get_categories):
+	Fix type, causing warnings.
+
 2004-08-23  Sivaiah Nallagatla <snallagatla novell com>
 
 	* libedataserver/e-file-cache.c (e_file_cache_set_property) :
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/ChangeLog,v
retrieving revision 1.194
diff -u -p -r1.194 ChangeLog
--- addressbook/ChangeLog	23 Aug 2004 12:59:43 -0000	1.194
+++ addressbook/ChangeLog	25 Aug 2004 09:30:04 -0000
@@ -1,3 +1,8 @@
+2004-08-25  Frederic Crozat  <fcrozat mandrakesoft com>
+
+	* tests/ebook/test-photo.c:
+	Add missing prototype.
+
 2004-08-23  Sivaiah Nallagatla <snallagatla novell com>
 
 	* backends/groupwise/e-book-backend-groupwise.c 
Index: addressbook/tests/ebook/test-photo.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/tests/ebook/test-photo.c,v
retrieving revision 1.2
diff -u -p -r1.2 test-photo.c
--- addressbook/tests/ebook/test-photo.c	9 Jan 2004 19:12:11 -0000	1.2
+++ addressbook/tests/ebook/test-photo.c	25 Aug 2004 09:30:05 -0000
@@ -25,6 +25,7 @@ EV8bq1hvbWW1uY1khlUo6MMhgeor7UoAje18FtmL
 mlRCkjKQ30jPUe1WlrlNW0RptTleNB84DnjkD0P9VlxT4Nqck9pmn8JuFp2zo0cgCWFi2e7555\
 /NSHXLadso2m3sU0NxlV65HM+VdTW3rgwvsUpSvAFKUoAUxSlAClKUAKUpQB//2Q==";
 
+size_t _evc_base64_decode_simple (char *data, size_t len);
 
 int
 main (int argc, char **argv)
Index: calendar/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.319
diff -u -p -r1.319 ChangeLog
--- calendar/ChangeLog	24 Aug 2004 16:10:32 -0000	1.319
+++ calendar/ChangeLog	25 Aug 2004 09:30:05 -0000
@@ -1,3 +1,8 @@
+2004-08-25  Frederic Crozat  <fcrozat mandrakesoft com>
+
+	* libecal/e-cal.c: (e_cal_set_default_timezone):
+	Need a return value.
+
 2004-08-24  Sivaiah Nallagatla <snallagatla novell com>
 
 	* backends/groupwise/e-cal-backend-groupwise.c 
Index: calendar/libecal/e-cal.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/libecal/e-cal.c,v
retrieving revision 1.73
diff -u -p -r1.73 e-cal.c
--- calendar/libecal/e-cal.c	17 Aug 2004 13:36:35 -0000	1.73
+++ calendar/libecal/e-cal.c	25 Aug 2004 09:30:05 -0000
@@ -4191,7 +4191,7 @@ e_cal_set_default_timezone (ECal *ecal, 
 
 	/* Don't set the same timezone multiple times */
 	if (priv->default_zone == zone)
-		return;
+		return FALSE;
 	
 	/* Make sure the server has the VTIMEZONE data. */
 	if (!e_cal_ensure_timezone_on_server (ecal, zone, error))
Index: libedataserver/e-file-cache.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-file-cache.c,v
retrieving revision 1.9
diff -u -p -r1.9 e-file-cache.c
--- libedataserver/e-file-cache.c	23 Aug 2004 11:08:07 -0000	1.9
+++ libedataserver/e-file-cache.c	25 Aug 2004 09:30:05 -0000
@@ -21,6 +21,7 @@
 
 #include <config.h>
 #include <string.h>
+#include <unistd.h>
 #include "e-file-cache.h"
 #include "e-util.h"
 #include "e-xml-hash-utils.h"
@@ -265,7 +266,7 @@ add_key_to_list (const char *key, const 
 {
 	GList **keys = user_data;
 
-	*keys = g_list_append (*keys, key);
+	*keys = g_list_append (*keys, (char *) key);
 }
 
 /**
@@ -343,7 +344,7 @@ add_object_to_list (const char *key, con
 {
 	GSList **list = user_data;
 
-	*list = g_slist_prepend (*list, value);
+	*list = g_slist_prepend (*list, (char *) value);
 }
 
 /**
Index: libedataserver/e-util.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-util.c,v
retrieving revision 1.2
diff -u -p -r1.2 e-util.c
--- libedataserver/e-util.c	8 Dec 2003 18:02:55 -0000	1.2
+++ libedataserver/e-util.c	25 Aug 2004 09:30:05 -0000
@@ -22,6 +22,7 @@
 #include <string.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <alloca.h>
 #include <glib/gfileutils.h>
 #include <glib/gmem.h>
 #include <glib/gmessages.h>
Index: servers/groupwise/e-gw-connection.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-connection.c,v
retrieving revision 1.79
diff -u -p -r1.79 e-gw-connection.c
--- servers/groupwise/e-gw-connection.c	24 Aug 2004 16:07:41 -0000	1.79
+++ servers/groupwise/e-gw-connection.c	25 Aug 2004 09:30:05 -0000
@@ -1407,7 +1407,7 @@ e_gw_connection_get_categories (EGwConne
         SoupSoapResponse *response;
         EGwConnectionStatus status;
         SoupSoapParameter *param, *subparam, *second_level_child;
-	const char *id, *name;
+	char *id, *name;
         g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), E_GW_CONNECTION_STATUS_INVALID_OBJECT);
 	
 	/* build the SOAP message */


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