[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2606-gfe7fd9a

Brad King brad.king at kitware.com
Fri Mar 22 08:56:28 EDT 2013


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, next has been updated
       via  fe7fd9a53c110b1af7ac765affa21e2b97858e11 (commit)
       via  0fca1543445409f3c4a5f3946999bd4dfde46964 (commit)
      from  b147ee469aa9ff4f7db106495249461b8bfc3644 (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=fe7fd9a53c110b1af7ac765affa21e2b97858e11
commit fe7fd9a53c110b1af7ac765affa21e2b97858e11
Merge: b147ee4 0fca154
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Mar 22 08:56:26 2013 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Mar 22 08:56:26 2013 -0400

    Merge topic 'cpack-printf-format-warnings' into next
    
    0fca154 CPack: Avoid "format expects 'unsigned int'" warnings


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0fca1543445409f3c4a5f3946999bd4dfde46964
commit 0fca1543445409f3c4a5f3946999bd4dfde46964
Author:     Paul Kunysch <kunysch at me.com>
AuthorDate: Tue Mar 5 20:16:11 2013 +0100
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Fri Mar 22 08:53:58 2013 -0400

    CPack: Avoid "format expects 'unsigned int'" warnings
    
    Cast sprintf uid and gid arguments to match the type expected by their
    "%-6u" format strings.

diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx
index f99db58..4494e8a 100644
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -771,13 +771,13 @@ static int put_arobj(CF *cfp, struct stat *sb)
     }
   if (lname > sizeof(hdr->ar_name) || strchr(name, ' '))
     (void)sprintf(ar_hb, HDR1, AR_EFMT1, (int)lname,
-                  (long int)sb->st_mtime, uid, gid, sb->st_mode,
-                  (long long)sb->st_size + lname, ARFMAG);
+                  (long int)sb->st_mtime, (unsigned)uid, (unsigned)gid,
+                  sb->st_mode, (long long)sb->st_size + lname, ARFMAG);
     else {
       lname = 0;
       (void)sprintf(ar_hb, HDR2, name,
-                    (long int)sb->st_mtime, uid, gid, sb->st_mode,
-                    (long long)sb->st_size, ARFMAG);
+                    (long int)sb->st_mtime, (unsigned)uid, (unsigned)gid,
+                    sb->st_mode, (long long)sb->st_size, ARFMAG);
       }
     off_t size = sb->st_size;
 

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

Summary of changes:
 Source/CPack/cmCPackDebGenerator.cxx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list