evolution-data-server/eds-compiler-warning.patch

52 lines
1.9 KiB
Diff
Raw Normal View History

Index: addressbook/backends/ldap/e-book-backend-ldap.c
===================================================================
--- addressbook/backends/ldap/e-book-backend-ldap.c.orig
+++ addressbook/backends/ldap/e-book-backend-ldap.c
@@ -2243,8 +2243,10 @@ contact_list_handler (LDAPOp *op, LDAPMe
GTimeVal start, end;
unsigned long diff;
- if (enable_debug)
+ if (enable_debug) {
printf ("contact_list_handler ...\n");
+ g_get_current_time (&start);
+ }
ldap = bl->priv->ldap;
if (!ldap) {
e_data_book_respond_get_contact_list (op->book, op->opid, GNOME_Evolution_Addressbook_OtherError, NULL);
@@ -2427,6 +2429,8 @@ e_book_backend_ldap_get_contact_list (EB
if (enable_debug) {
g_get_current_time (&end);
printf ("e_book_backend_ldap_get_contact_list invoked contact_list_handler ");
+ diff = end.tv_sec * 1000 + end.tv_usec/1000;
+ diff -= start.tv_sec * 1000 + start.tv_usec/1000;
printf ("and took %ld.%03ld seconds\n", diff/1000, diff%1000);
}
}
Index: camel/camel-stream-vfs.c
===================================================================
--- camel/camel-stream-vfs.c.orig
+++ camel/camel-stream-vfs.c
@@ -151,7 +151,7 @@ camel_stream_vfs_new_with_uri (const cha
{
GnomeVFSResult result;
GnomeVFSHandle *handle;
- int vfs_flag;
+ int vfs_flag = 0;
if (flags & O_WRONLY)
vfs_flag = vfs_flag | GNOME_VFS_OPEN_WRITE;
Index: servers/exchange/storage/exchange-account.c
===================================================================
--- servers/exchange/storage/exchange-account.c.orig
+++ servers/exchange/storage/exchange-account.c
@@ -1965,7 +1965,7 @@ exchange_account_get_quota_limit (Exchan
int
exchange_account_check_password_expiry (ExchangeAccount *account)
{
- E2kGlobalCatalogEntry *entry;
+ E2kGlobalCatalogEntry *entry = NULL;
int max_pwd_age_days = -1;
g_return_val_if_fail (EXCHANGE_IS_ACCOUNT (account), 0);