svn commit: r323572 - head/usr.sbin/zic/zic
Ryan Libby
rlibby at FreeBSD.org
Thu Sep 14 03:39:44 UTC 2017
Author: rlibby
Date: Thu Sep 14 03:39:42 2017
New Revision: 323572
URL: https://svnweb.freebsd.org/changeset/base/323572
Log:
zic: -Wno-error=strict-overflow
Reviewed by: emaste
Sponsored by: Dell EMC Isilon
X-Differential Revision: https://reviews.freebsd.org/D12284
Modified:
head/usr.sbin/zic/zic/Makefile
Modified: head/usr.sbin/zic/zic/Makefile
==============================================================================
--- head/usr.sbin/zic/zic/Makefile Thu Sep 14 01:24:17 2017 (r323571)
+++ head/usr.sbin/zic/zic/Makefile Thu Sep 14 03:39:42 2017 (r323572)
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
.PATH: ${SRCTOP}/contrib/tzcode/zic
PROG= zic
@@ -12,5 +14,9 @@ CFLAGS+= -DHAVE_STRERROR -DHAVE_UNISTD_H
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>
More information about the svn-src-all
mailing list