Set NO_WERROR to ignore the following warning which is emitted on

alphas:
    .../elf2aout.c:130: warning: cast increases required alignment of
    target type
The warning is about casting ((char *)e + phoff) to a struct pointer,
where e is aligned but phoff might be garbage, so I think the warning
should be emitted on most machines (even on i386's, alignment checking
might be on) and the correct fix would involve validation phoff before
using it.
This commit is contained in:
Bruce Evans 2002-07-11 18:06:09 +00:00
parent bf117eda42
commit 729cce8403
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PROG= elf2aout
CFLAGS+=-I${.CURDIR}/../crunch/crunchide
WARNS?= 5
NO_WERROR?=
NOMAN=
.include <bsd.prog.mk>

View File

@ -3,6 +3,7 @@
PROG= elf2aout
CFLAGS+=-I${.CURDIR}/../crunch/crunchide
WARNS?= 5
NO_WERROR?=
NOMAN=
.include <bsd.prog.mk>