Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 07:01:40 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316077 - head/sys/boot/i386/gptzfsboot
Message-ID:  <201703280701.v2S71e0T030079@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Mar 28 07:01:40 2017
New Revision: 316077
URL: https://svnweb.freebsd.org/changeset/base/316077

Log:
  Unbreak compilation with gcc 4.2.1
  
  -Wtentative-definition-incomplete-type isn't implemented for 4.2.1
  
  X-MFC with:	r304321
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/boot/i386/gptzfsboot/Makefile

Modified: head/sys/boot/i386/gptzfsboot/Makefile
==============================================================================
--- head/sys/boot/i386/gptzfsboot/Makefile	Tue Mar 28 06:39:54 2017	(r316076)
+++ head/sys/boot/i386/gptzfsboot/Makefile	Tue Mar 28 07:01:40 2017	(r316077)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+.include <bsd.own.mk>
+
 .PATH:		${.CURDIR}/../boot2 ${.CURDIR}/../gptboot \
 		${.CURDIR}/../zfsboot ${.CURDIR}/../common \
 		${.CURDIR}/../../common ${.CURDIR}/../../../crypto/skein
@@ -34,7 +36,12 @@ CFLAGS=	-DBOOTPROG=\"gptzfsboot\" \
 	-Wall -Waggregate-return -Wbad-function-cast -Wno-cast-align \
 	-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
 	-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
-	-Winline -Wno-tentative-definition-incomplete-type -Wno-pointer-sign
+	-Winline -Wno-pointer-sign
+
+.if ${COMPILER_TYPE} == "clang" || \
+    (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} > 40201)
+CFLAGS+=	-Wno-tentative-definition-incomplete-type
+.endif
 
 # Do not unroll skein loops, reduce code size
 CFLAGS+=	-DSKEIN_LOOP=111



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