mirror of
https://github.com/reactos/CMake.git
synced 2025-01-02 00:39:17 +00:00
Merge topic 'cpack-printf-format-warnings'
0fca154
CPack: Avoid "format expects 'unsigned int'" warnings
This commit is contained in:
commit
40e677e785
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user