[gmime] Silenced pedantic compiler warnings



commit c0dccfd1bb505b62921579f8f2df9fa6816e2738
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Fri Oct 19 17:12:53 2012 -0400

    Silenced pedantic compiler warnings

 gmime/charset-map.c            |    4 ++--
 gmime/gmime-multipart-signed.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gmime/charset-map.c b/gmime/charset-map.c
index 46efa5a..65e6de3 100644
--- a/gmime/charset-map.c
+++ b/gmime/charset-map.c
@@ -115,11 +115,11 @@ int main (int argc, char **argv)
 	size_t inleft, outleft;
 	char *inbuf, *outbuf;
 	guint32 out[128], c;
+	unsigned int i;
 	char in[128];
 	iconv_t cd;
 	int bytes;
 	int j, k;
-	size_t i;
 	
 	/* dont count the terminator */
 	bytes = ((sizeof (tables) / sizeof (tables[0])) + 7 - 1) / 8;
@@ -139,7 +139,7 @@ int main (int argc, char **argv)
 				inbuf++;
 				inleft--;
 			} else {
-				g_warning ("iconv (%s->UCS4, ..., %d, ..., %d): %s",
+				g_warning ("iconv (%s->UCS4, ..., %zu, ..., %zu): %s",
 					   tables[j].name, inleft, outleft,
 					   g_strerror (errno));
 				exit (1);
diff --git a/gmime/gmime-multipart-signed.c b/gmime/gmime-multipart-signed.c
index 15c5dea..c6f2aa7 100644
--- a/gmime/gmime-multipart-signed.c
+++ b/gmime/gmime-multipart-signed.c
@@ -348,7 +348,7 @@ check_protocol_supported (const char *protocol, const char *supported)
 	 * protocol. For example, if the supported protocol is
 	 * "application/pkcs7-signature", then we also want to
 	 * match "application/x-pkcs7-signature". */
-	xsupported = g_strdup_printf ("%.*sx-%s", subtype - supported, supported, subtype);
+	xsupported = g_strdup_printf ("%.*sx-%s", (int) (subtype - supported), supported, subtype);
 	rv = !g_ascii_strcasecmp (protocol, xsupported);
 	g_free (xsupported);
 	



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