diff --git a/bin/expr/Makefile b/bin/expr/Makefile index a1f6cbf21091..1d741b7e0b6d 100644 --- a/bin/expr/Makefile +++ b/bin/expr/Makefile @@ -1,15 +1,18 @@ # $FreeBSD$ .include PROG= expr SRCS= expr.y YFLAGS= +# expr relies on signed integer wrapping +CFLAGS+= -fwrapv + NO_WMISSING_VARIABLE_DECLARATIONS= .if ${MK_TESTS} != "no" SUBDIR+= tests .endif .include