[evolution] Bug #624891 - Various compiler warnings in git/master



commit 410b996d54ee4787289760aec2329e24804d1061
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jul 22 11:13:10 2010 +0200

    Bug #624891 - Various compiler warnings in git/master

 composer/e-msg-composer.c |    2 +-
 e-util/gtk-compat.h       |   10 ++++------
 mail/e-mail-reader.c      |    2 +-
 mail/em-account-editor.c  |    4 +++-
 4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index e1bf625..8571e61 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2536,7 +2536,7 @@ handle_multipart_signed (EMsgComposer *composer,
 	CamelContentType *content_type;
 	CamelDataWrapper *content;
 	CamelMimePart *mime_part;
-	GtkToggleAction *action;
+	GtkToggleAction *action = NULL;
 	const gchar *protocol;
 
 	content = CAMEL_DATA_WRAPPER (multipart);
diff --git a/e-util/gtk-compat.h b/e-util/gtk-compat.h
index b01b8c5..3e531b2 100644
--- a/e-util/gtk-compat.h
+++ b/e-util/gtk-compat.h
@@ -27,12 +27,10 @@
 #if GTK_CHECK_VERSION (2,90,5)
 
 /* Recreate GdkRegion until we drop GTK2 compatibility. */
-
-typedef enum {
-	GDK_OVERLAP_RECTANGLE_IN,
-	GDK_OVERLAP_RECTANGLE_OUT,
-	GDK_OVERLAP_RECTANGLE_PART
-} GdkOverlapType;
+#define GdkOverlapType cairo_region_overlap_t
+#define GDK_OVERLAP_RECTANGLE_IN   CAIRO_REGION_OVERLAP_IN
+#define GDK_OVERLAP_RECTANGLE_OUT  CAIRO_REGION_OVERLAP_OUT
+#define GDK_OVERLAP_RECTANGLE_PART CAIRO_REGION_OVERLAP_PART
 
 #define GdkRegion cairo_region_t
 
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 2227173..43f41c9 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -124,7 +124,7 @@ action_mail_add_sender_cb (GtkAction *action,
 {
 	EShell *shell;
 	EShellBackend *shell_backend;
-	CamelMessageInfo *info;
+	CamelMessageInfo *info = NULL;
 	CamelFolder *folder;
 	GPtrArray *uids;
 	const gchar *address;
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 603aa52..99ba817 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2606,6 +2606,7 @@ emae_receive_options_extra_item (EConfig *ec, EConfigItem *eitem, GtkWidget *par
 	return NULL;
 section:
 	d (printf ("Building extra section '%s'\n", eitem->path));
+	w = NULL;
 	url = emae_account_url (emae, emae_service_info[service->type].account_uri_key);
 	item->extra_table = g_hash_table_new (g_str_hash, g_str_equal);
 	extra = g_hash_table_new (g_str_hash, g_str_equal);
@@ -2699,7 +2700,8 @@ section:
 	}
 
 	camel_url_free (url);
-	gtk_widget_show (w);
+	if (w)
+		gtk_widget_show (w);
 
 	return w;
 }



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