mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 23:10:26 +00:00
COMP: remove warnings
This commit is contained in:
parent
ef3c6f31fd
commit
887699184a
@ -129,7 +129,7 @@ ssize_t cmCPackTGZ_Data_Write(void *client_data, void *buff, size_t n)
|
||||
|
||||
if ( mydata->Compress )
|
||||
{
|
||||
mydata->ZLibStream.avail_in = n;
|
||||
mydata->ZLibStream.avail_in = static_cast<uInt>(n);
|
||||
mydata->ZLibStream.next_in = reinterpret_cast<Bytef*>(buff);
|
||||
|
||||
do {
|
||||
@ -157,7 +157,8 @@ ssize_t cmCPackTGZ_Data_Write(void *client_data, void *buff, size_t n)
|
||||
}
|
||||
if ( n )
|
||||
{
|
||||
mydata->CRC = crc32(mydata->CRC, reinterpret_cast<Bytef *>(buff), n);
|
||||
mydata->CRC = crc32(mydata->CRC, reinterpret_cast<Bytef *>(buff),
|
||||
static_cast<uInt>(n));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -228,7 +228,7 @@ int cmGeneratedFileStreamBase::CompressFile(const char* oldname,
|
||||
char buffer[BUFFER_SIZE];
|
||||
while ( (res = fread(buffer, 1, BUFFER_SIZE, ifs)) > 0 )
|
||||
{
|
||||
if ( !gzwrite(gf, buffer, res) )
|
||||
if ( !gzwrite(gf, buffer, static_cast<int>(res)) )
|
||||
{
|
||||
fclose(ifs);
|
||||
gzclose(gf);
|
||||
|
@ -1661,7 +1661,7 @@ ssize_t cmSystemToolsGZStructWrite(void* call_data, const void* buf,
|
||||
size_t count)
|
||||
{
|
||||
cmSystemToolsGZStruct* gzf = static_cast<cmSystemToolsGZStruct*>(call_data);
|
||||
return gzwrite(gzf->GZFile, (void*)buf, count);
|
||||
return gzwrite(gzf->GZFile, (void*)buf, static_cast<int>(count));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -130,13 +130,13 @@ static int libtar_gzclose(void* call_data)
|
||||
static ssize_t libtar_gzread(void* call_data, void* buf, size_t count)
|
||||
{
|
||||
struct gzStruct* gzf = (struct gzStruct*)call_data;
|
||||
return gzread(gzf->GZFile, buf, count);
|
||||
return gzread(gzf->GZFile, buf, (unsigned int)count);
|
||||
}
|
||||
|
||||
static ssize_t libtar_gzwrite(void* call_data, const void* buf, size_t count)
|
||||
{
|
||||
struct gzStruct* gzf = (struct gzStruct*)call_data;
|
||||
return gzwrite(gzf->GZFile, (void*)buf, count);
|
||||
return gzwrite(gzf->GZFile, (void*)buf, (unsigned int)count);
|
||||
}
|
||||
|
||||
tartype_t gztype = {
|
||||
|
Loading…
Reference in New Issue
Block a user