summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrlibby <rlibby@FreeBSD.org>2017-09-18 20:01:16 +0000
committerrlibby <rlibby@FreeBSD.org>2017-09-18 20:01:16 +0000
commit49d62c9c3f8b1e28c73db29d40ff6c72ae8437c3 (patch)
tree90fa7ceda957fb2ca1a84597a8f4561834e27be3
parent965681ee8a6f96f83f326547fb469a144b02cdbe (diff)
downloadFreeBSD-src-49d62c9c3f8b1e28c73db29d40ff6c72ae8437c3.zip
FreeBSD-src-49d62c9c3f8b1e28c73db29d40ff6c72ae8437c3.tar.gz
MFC r323572:
zic: -Wno-error=strict-overflow
-rw-r--r--usr.sbin/zic/zic/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/zic/zic/Makefile b/usr.sbin/zic/zic/Makefile
index 9702c4c..36cc790 100644
--- a/usr.sbin/zic/zic/Makefile
+++ b/usr.sbin/zic/zic/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
.PATH: ${SRCTOP}/contrib/tzcode/zic
PROG= zic
@@ -13,4 +15,8 @@ CFLAGS+= -I${.CURDIR:H} -I${SRCTOP}/contrib/tzcode/stdtime
WARNS?= 2
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 50300
+CWARNFLAGS+= -Wno-error=strict-overflow
+.endif
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud