[balsa] Get rid of compilation warnings.



commit e5a2fa0a2208667501ac83213166ce96aa85815f
Author: Pawel Salek <pawsa0 gmail com>
Date:   Fri May 27 21:45:09 2011 +0200

    Get rid of compilation warnings.

 ChangeLog       |    5 +++++
 libbalsa/mime.c |    5 ++---
 libbalsa/send.c |    5 +++--
 3 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3a4832e..7d36c51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-27  Pawel Salek
+
+	* libbalsa/mime.c:
+	* libbalsa/send.c: get rid of compilation warnings.
+
 2011-04-16  Peter Bloomfield
 
 	Deprecation cleanup and fix gcc issues
diff --git a/libbalsa/mime.c b/libbalsa/mime.c
index 2cf8fdd..4813701 100644
--- a/libbalsa/mime.c
+++ b/libbalsa/mime.c
@@ -51,7 +51,6 @@ process_mime_part(LibBalsaMessage * message, LibBalsaMessageBody * body,
                   gboolean flow)
 {
     gchar *res = NULL;
-    size_t allocated;
     GString *reply = NULL;
     gchar *mime_type;
     LibBalsaHTMLType html_type;
@@ -78,13 +77,13 @@ process_mime_part(LibBalsaMessage * message, LibBalsaMessageBody * body,
 	if (ignore_html && html_type)
 	    break;
 
-	allocated = libbalsa_message_body_get_content(body, &res, NULL);
+	/*allocated =*/ libbalsa_message_body_get_content(body, &res, NULL);
 	if (!res)
 	    return NULL;
 
 #ifdef HAVE_HTML_WIDGET
 	if (html_type) {
-	    allocated = libbalsa_html_filter(html_type, &res, allocated);
+	    size_t allocated = libbalsa_html_filter(html_type, &res, allocated);
 	    libbalsa_html_to_string(&res, allocated);
 	}
 #endif /* HAVE_HTML_WIDGET */
diff --git a/libbalsa/send.c b/libbalsa/send.c
index a22861c..e5970b9 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1702,13 +1702,14 @@ libbalsa_message_create_mime_message(LibBalsaMessage* message, gboolean flow,
     InternetAddressList *ia_list;
     gchar *tmp;
     GList *list;
-    GtkWindow * parent;
+#ifdef HAVE_GPGME
+    GtkWindow * parent = g_object_get_data(G_OBJECT(message), "parent-window");
+#endif
 
     body = message->body_list;
     if (body && body->next)
 	mime_root=GMIME_OBJECT(g_mime_multipart_new_with_subtype(message->subtype));
 
-    parent = g_object_get_data(G_OBJECT(message), "parent-window");
     while (body) {
 	GMimeObject *mime_part;
 	mime_part=NULL;



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