NOISSUE fix a bunch of compiler warnings

This commit is contained in:
Petr Mrázek
2017-05-21 20:20:37 +02:00
parent 572a6026b5
commit 8bd8be95f0
10 changed files with 22 additions and 27 deletions

View File

@ -210,7 +210,8 @@ void ForgeXzDownload::decompressAndInstall()
if (b.out_pos == sizeof(out))
{
if (pack200_file.write((char *)out, b.out_pos) != b.out_pos)
auto wresult = pack200_file.write((char *)out, b.out_pos);
if (wresult < 0 || size_t(wresult) != b.out_pos)
{
// msg = "Write error\n";
xz_dec_end(s);
@ -230,7 +231,8 @@ void ForgeXzDownload::decompressAndInstall()
continue;
}
if (pack200_file.write((char *)out, b.out_pos) != b.out_pos)
auto wresult = pack200_file.write((char *)out, b.out_pos);
if (wresult < 0 || size_t(wresult) != b.out_pos)
{
// write error
pack200_file.close();