Silence some gcc-8-snapshot compiler warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2018-01-19 14:13:58 +01:00
parent 9485a56af1
commit 9248f02557
9 changed files with 17 additions and 25 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ Packer::Packer(InputFile *f) :
if (fi != NULL)
file_size = fi->st_size();
uip = new UiPacker(this);
memset(&ph, 0, sizeof(ph));
mem_clear(&ph, sizeof(ph));
}
@@ -665,7 +665,7 @@ unsigned Packer::getRandomId() const
// this is called directly after the constructor from class PackMaster
void Packer::initPackHeader()
{
memset(&ph, 0, sizeof(ph));
mem_clear(&ph, sizeof(ph));
ph.version = getVersion();
ph.format = getFormat();
ph.method = M_NONE;