[Cmake-commits] CMake branch, master, updated. v2.8.2-404-gf2b4a46

KWSys Robot kwrobot at kitware.com
Fri Sep 10 09:00:05 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
       via  f2b4a466779f5481c79d711ee2601d60ce41a6ad (commit)
      from  de346204b823f79685fa6a0be5c3c376fdbb422b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f2b4a466779f5481c79d711ee2601d60ce41a6ad
commit f2b4a466779f5481c79d711ee2601d60ce41a6ad
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Sep 10 08:53:50 2010 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Fri Sep 10 09:00:02 2010 -0400

    KWSys: Suppress -Wcast-align warning in MD5.c
    
    The code does contain a cast that increases alignment but only in a
    conditional that verifies the input is sufficiently aligned.

diff --git a/Source/kwsys/MD5.c b/Source/kwsys/MD5.c
index 1ea0a66..56776a3 100644
--- a/Source/kwsys/MD5.c
+++ b/Source/kwsys/MD5.c
@@ -29,6 +29,11 @@
    it in a single source file instead of a separate header and
    implementation file.  */
 
+#if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wcast-align"
+#endif
+
 /*
   Copyright (C) 1999, 2000, 2002 Aladdin Enterprises.  All rights reserved.
 
@@ -428,6 +433,10 @@ static void md5_finish(md5_state_t *pms, md5_byte_t digest[16])
         digest[i] = (md5_byte_t)(pms->abcd[i >> 2] >> ((i & 3) << 3));
 }
 
+#if defined(__clang__)
+# pragma clang diagnostic pop
+#endif
+
 /*--------------------------------------------------------------------------*/
 /* Wrap up the MD5 state in our opaque structure.  */
 struct kwsysMD5_s

-----------------------------------------------------------------------

Summary of changes:
 Source/kwsys/MD5.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list