aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-03-22 22:40:32 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-03-22 22:40:32 +0000
commitc969922258cedb8ec9cf9d117aedaf4082bca3af (patch)
tree30337f575f7f2c78cbdb52358d809c28e0f14880 /bin
parent296f235de0f6cc9792bdfbb5469c1ea0db01db65 (diff)
downloadsrc-c969922258cedb8ec9cf9d117aedaf4082bca3af.tar.gz
src-c969922258cedb8ec9cf9d117aedaf4082bca3af.zip
Build expr with -fwrapv, since it relies on signed integer wrapping
having defined behavior. Reported by: rodrigc MFC after: 3 days
Notes
Notes: svn path=/head/; revision=280357
Diffstat (limited to 'bin')
-rw-r--r--bin/expr/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/expr/Makefile b/bin/expr/Makefile
index a1f6cbf21091..1d741b7e0b6d 100644
--- a/bin/expr/Makefile
+++ b/bin/expr/Makefile
@@ -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"