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

55 lines
1.5 KiB
Diff

--- addressbook/backends/ldap/e-book-backend-ldap.c
+++ addressbook/backends/ldap/e-book-backend-ldap.c
@@ -2285,7 +2285,9 @@
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) {
@@ -2481,6 +2483,8 @@
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);
}
}
--- camel/camel-stream-vfs.c
+++ camel/camel-stream-vfs.c
@@ -151,7 +151,7 @@
{
GnomeVFSResult result;
GnomeVFSHandle *handle;
- int vfs_flag;
+ int vfs_flag = 0;
if (flags & O_WRONLY)
vfs_flag = vfs_flag | GNOME_VFS_OPEN_WRITE;
--- libedataserverui/e-passwords.c
+++ libedataserverui/e-passwords.c
@@ -600,6 +600,7 @@
#endif
#if WITH_GNOME_KEYRING
+static void
ep_get_password (EPassMsg *msg)
{
char *path, *passwd;
--- servers/exchange/storage/exchange-account.c
+++ servers/exchange/storage/exchange-account.c
@@ -1846,7 +1846,7 @@
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);