Silence some compilation warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2011-08-30 03:40:53 +02:00
parent 36bc14e884
commit afbd553622
4 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ void PackLinuxElf32x86interp::pack1(OutputFile *fo, Filter &)
h3.phdr[2].p_align = 1;
if (opt->o_unix.make_ptinterp) { // unusual "once per release"
*(cprElfHdr3 *)&elfout = h3;
*(cprElfHdr3 *)(void *)&elfout = h3;
elfout.ehdr.e_phnum = 1;
fo->write(&elfout, elfout.ehdr.e_ehsize + elfout.ehdr.e_phentsize);
}