summaryrefslogtreecommitdiffstats
path: root/bin/expr
diff options
context:
space:
mode:
Diffstat (limited to 'bin/expr')
-rw-r--r--bin/expr/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/expr/Makefile b/bin/expr/Makefile
index 23f768b..0749802 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"
OpenPOWER on IntegriCloud