[anjal] fix warnings



commit 9092806ca5911cd47ad249daf4b78e4f6b573c3b
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Fri May 29 17:10:08 2009 +0530

    fix warnings
---
 src/em-format-webkit.c |   12 +++---------
 src/em-webkit-stream.c |    6 ++++--
 2 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/em-format-webkit.c b/src/em-format-webkit.c
index 40b2f5f..2f21c31 100644
--- a/src/em-format-webkit.c
+++ b/src/em-format-webkit.c
@@ -224,8 +224,6 @@ em_format_webkit_get_type(void)
 			sizeof(EMFormatWebKit), 0,
 			(GInstanceInitFunc)efw_init
 		};
-		const char *base_directory = e_get_user_data_dir ();
-		char *path;
 
 		/* Trigger creation of mail component. */
 		mail_component_peek ();
@@ -620,10 +618,10 @@ efw_text_enriched(EMFormatWebKit *efw, CamelStream *stream, CamelMimePart *part,
 	camel_stream_write_string(stream, "</div>");
 }
 
+#ifdef NOT_USED
 static void
 efw_write_text_html(EMFormat *emf, CamelStream *stream, EMFormatPURI *puri)
 {
-#if d(!)0
 	CamelStream *out;
 	int fd;
 	CamelDataWrapper *dw;
@@ -635,16 +633,14 @@ efw_write_text_html(EMFormat *emf, CamelStream *stream, EMFormatPURI *puri)
 	if (dw)
 		camel_data_wrapper_write_to_stream(dw, out);
 	camel_object_unref(out);
-#endif
 	em_format_format_text(emf, stream, (CamelDataWrapper *)puri->part);
 }
-
+#endif
 static void
 efw_text_html(EMFormatWebKit *efw, CamelStream *stream, CamelMimePart *part, EMFormatHandler *info)
 {
 	const char *location;
 	/* This is set but never used for anything */
-	EMFormatPURI *puri;
 	char *cid = NULL;
 
 	camel_stream_printf (stream,
@@ -675,7 +671,7 @@ efw_text_html(EMFormatWebKit *efw, CamelStream *stream, CamelMimePart *part, EMF
 		}
 	}
 
-	em_format_format_text(efw, stream, part);
+	em_format_format_text((EMFormat *)efw, stream, (CamelDataWrapper *)part);
 	d(printf("adding iframe, location %s\n", cid));
 	/*camel_stream_printf(stream,
 			    "<iframe src=\"%s\" frameborder=0 scrolling=no>could not get %s</iframe>\n"
@@ -1805,7 +1801,6 @@ efw_format_headers(EMFormatWebKit *efw, CamelStream *stream, CamelMedium *part)
 
 static void efw_format_message(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const EMFormatHandler *info)
 {
-	const EMFormatHandler *handle;
 
 	/* TODO: make this validity stuff a method */
 	EMFormatWebKit *efw = (EMFormatWebKit *) emf;
@@ -1855,7 +1850,6 @@ static void efw_format_source(EMFormat *emf, CamelStream *stream, CamelMimePart
 static void
 efw_format_attachment(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const char *mime_type, const EMFormatHandler *handle)
 {
-	char *text, *html;
 
 	/* we display all inlined attachments only */
 
diff --git a/src/em-webkit-stream.c b/src/em-webkit-stream.c
index 93e2268..0e36c02 100644
--- a/src/em-webkit-stream.c
+++ b/src/em-webkit-stream.c
@@ -75,11 +75,13 @@ em_webkit_stream_init (CamelObject *object)
 	/*EMWebKitStream *emws = (EMWebKitStream *)object;*/
 }
 
+#ifdef NOT_USED
 static void
 emws_cleanup(EMWebKitStream *emws)
 {
 	emws->sync.cancel = TRUE;	
 }
+#endif
 
 static void
 em_webkit_stream_finalize (CamelObject *object)
@@ -103,7 +105,7 @@ emws_sync_write(CamelStream *stream, const char *buffer, size_t n)
 static int
 emws_sync_flush(CamelStream *stream)
 {
-	EMWebKitStream *emws = (EMWebKitStream *)stream;
+	/* EMWebKitStream *emws = (EMWebKitStream *)stream;*/
 
 	return 0;
 }
@@ -113,7 +115,7 @@ emws_sync_close(CamelStream *stream)
 {
 	EMWebKitStream *emws = (EMWebKitStream *)stream;
 	if (webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)))
-		gtk_widget_set_size_request (emws->view, -1, webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)));
+		gtk_widget_set_size_request ((GtkWidget *)emws->view, -1, webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)));
 
 	return 0;
 }



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