Build expr with -fwrapv, since it relies on signed integer wrapping

having defined behavior.

Reported by:	rodrigc
MFC after:	3 days
This commit is contained in:
Dimitry Andric 2015-03-22 22:40:32 +00:00
parent 296f235de0
commit c969922258
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280357

View File

@ -6,6 +6,9 @@ PROG= expr
SRCS= expr.y
YFLAGS=
# expr relies on signed integer wrapping
CFLAGS+= -fwrapv
NO_WMISSING_VARIABLE_DECLARATIONS=
.if ${MK_TESTS} != "no"