Support building with OpenWatcom 1.8. Silence some compiler warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2008-12-31 16:56:38 +01:00
parent 063bd58802
commit 25f1765f36
27 changed files with 219 additions and 257 deletions
+8 -8
View File
@@ -287,21 +287,21 @@ Packer* PackMaster::visitAllPackers(visit_func_t func, InputFile *f, const optio
Packer *PackMaster::getPacker(InputFile *f)
{
Packer *p = visitAllPackers(try_pack, f, opt, f);
if (!p)
Packer *pp = visitAllPackers(try_pack, f, opt, f);
if (!pp)
throwUnknownExecutableFormat();
p->assertPacker();
return p;
pp->assertPacker();
return pp;
}
Packer *PackMaster::getUnpacker(InputFile *f)
{
Packer *p = visitAllPackers(try_unpack, f, opt, f);
if (!p)
Packer *pp = visitAllPackers(try_unpack, f, opt, f);
if (!pp)
throwNotPacked();
p->assertPacker();
return p;
pp->assertPacker();
return pp;
}