Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2017 14:50:32 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321331 - head/share/mk
Message-ID:  <201707211450.v6LEoWCO064640@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Fri Jul 21 14:50:32 2017
New Revision: 321331
URL: https://svnweb.freebsd.org/changeset/base/321331

Log:
  Add warning flags for GCC 7.1.0 compiler.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/share/mk/bsd.sys.mk

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk	Fri Jul 21 14:14:47 2017	(r321330)
+++ head/share/mk/bsd.sys.mk	Fri Jul 21 14:50:32 2017	(r321331)
@@ -145,6 +145,23 @@ CWARNFLAGS+=	-Wno-error=misleading-indentation	\
 		-Wno-error=unused-const-variable
 .endif
 
+# GCC 7.1.0
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 70100
+CWARNFLAGS+=	-Wno-error=deprecated			\
+		-Wno-error=pointer-compare		\
+		-Wno-error=format-truncation		\
+		-Wno-error=implicit-fallthrough		\
+		-Wno-error=expansion-to-defined		\
+		-Wno-error=int-in-bool-context		\
+		-Wno-error=bool-operation		\
+		-Wno-error=format-overflow		\
+		-Wno-error=stringop-overflow		\
+		-Wno-error=memset-elt-size		\
+		-Wno-error=int-in-bool-context		\
+		-Wno-error=unused-const-variable	\
+		-Wno-error=nonnull
+.endif
+
 # How to handle FreeBSD custom printf format specifiers.
 .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600
 FORMAT_EXTENSIONS=	-D__printf__=__freebsd_kprintf__



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