Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2017 03:39:42 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323572 - head/usr.sbin/zic/zic
Message-ID:  <201709140339.v8E3dguc081035@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709140339.v8E3dguc081035>