[balsa] Silence gcc version 4.7



commit d3e67310f915f828b307fedce2b94c415d985b55
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon May 21 19:05:28 2012 -0400

    Silence gcc version 4.7
    
    	* libbalsa/imap/md5-utils.c (md5_final): avoid gcc whining.

 ChangeLog                 |    4 ++++
 libbalsa/imap/md5-utils.c |    7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c856cab..387951d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-21  Peter Bloomfield
+
+	* libbalsa/imap/md5-utils.c (md5_final): avoid gcc whining.
+
 2012-04-21  Pawel Salek
 
 	* NEWS, configure.in: release balsa-2.4.12
diff --git a/libbalsa/imap/md5-utils.c b/libbalsa/imap/md5-utils.c
index c2f7620..264e2fc 100644
--- a/libbalsa/imap/md5-utils.c
+++ b/libbalsa/imap/md5-utils.c
@@ -180,8 +180,11 @@ md5_final (MD5Context *ctx, unsigned char digest[16])
 		_byte_reverse (ctx->in, 14);
 	
 	/* Append length in bits and transform */
-	((guint32 *) ctx->in)[14] = ctx->bits[0];
-	((guint32 *) ctx->in)[15] = ctx->bits[1];
+        { /* scope */
+                guint32 *q = (guint32 *) ctx->in;
+                q[14] = ctx->bits[0];
+                q[15] = ctx->bits[1];
+        }
 	
 	md5_transform (ctx->buf, (guint32 *) ctx->in);
 	if (ctx->doByteReverse)



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