svn commit: r323718 - stable/11/usr.sbin/zic/zic
Ryan Libby
rlibby at FreeBSD.org
Mon Sep 18 20:01:18 UTC 2017
Author: rlibby
Date: Mon Sep 18 20:01:16 2017
New Revision: 323718
URL: https://svnweb.freebsd.org/changeset/base/323718
Log:
MFC r323572:
zic: -Wno-error=strict-overflow
Modified:
stable/11/usr.sbin/zic/zic/Makefile
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/zic/zic/Makefile
==============================================================================
--- stable/11/usr.sbin/zic/zic/Makefile Mon Sep 18 20:01:01 2017 (r323717)
+++ stable/11/usr.sbin/zic/zic/Makefile Mon Sep 18 20:01:16 2017 (r323718)
@@ -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-stable
mailing list