svn commit: r326671 - head/stand/i386/gptzfsboot

Mark Johnston markj at FreeBSD.org
Thu Dec 7 22:11:25 UTC 2017


Author: markj
Date: Thu Dec  7 22:11:23 2017
New Revision: 326671
URL: https://svnweb.freebsd.org/changeset/base/326671

Log:
  Avoid setting -Wno-tentative-definition-incomplete-type with gcc.
  
  No version of gcc that I've tried accepts this flag.
  
  Reviewed by:	imp
  Differential Revision:	https://reviews.freebsd.org/D13415

Modified:
  head/stand/i386/gptzfsboot/Makefile

Modified: head/stand/i386/gptzfsboot/Makefile
==============================================================================
--- head/stand/i386/gptzfsboot/Makefile	Thu Dec  7 20:41:23 2017	(r326670)
+++ head/stand/i386/gptzfsboot/Makefile	Thu Dec  7 22:11:23 2017	(r326671)
@@ -39,12 +39,9 @@ CFLAGS+=-DBOOTPROG=\"gptzfsboot\" \
 	-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
 	-Winline -Wno-pointer-sign
 
-NO_WCAST_ALIGN=
+CFLAGS.clang+=	-Wno-tentative-definition-incomplete-type
 
-.if ${COMPILER_TYPE} == "clang" || \
-    (${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} > 40201)
-CFLAGS+=	-Wno-tentative-definition-incomplete-type
-.endif
+NO_WCAST_ALIGN=
 
 .if ${MACHINE} == "amd64"
 LIBZFSBOOT=${BOOTOBJ}/zfs32/libzfsboot.a


More information about the svn-src-head mailing list