diff options
author | Brad King <brad.king@kitware.com> | 2013-03-25 14:07:57 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-03-25 14:07:57 (GMT) |
commit | 40e677e785f37fa3a1d30e0a856839dc3f21e949 (patch) | |
tree | db82f61a79ec6f325facec4f9805fc613ec95a05 | |
parent | 1cc637da205dd62ba1afabee748a35f14de1a180 (diff) | |
parent | 0fca1543445409f3c4a5f3946999bd4dfde46964 (diff) | |
download | CMake-40e677e785f37fa3a1d30e0a856839dc3f21e949.zip CMake-40e677e785f37fa3a1d30e0a856839dc3f21e949.tar.gz CMake-40e677e785f37fa3a1d30e0a856839dc3f21e949.tar.bz2 |
Merge topic 'cpack-printf-format-warnings'
0fca154 CPack: Avoid "format expects 'unsigned int'" warnings
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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; |