svn commit: r316110 - head/sys/boot/efi/boot1

Ngie Cooper ngie at FreeBSD.org
Tue Mar 28 21:39:26 UTC 2017


Author: ngie
Date: Tue Mar 28 21:39:24 2017
New Revision: 316110
URL: https://svnweb.freebsd.org/changeset/base/316110

Log:
  Use `-Wno-missing-declarations` with CWARNFLAGS for skein.c
  
  `-Wno-missing-variable-declarations` is a clang-specific flag,
  so gcc (not 4.2.1, in particular 6.3.0 in my case) dies when
  it's passed the flag.
  
  X-MFC with:	r304321
  Reported by:	amd64-gcc-6.3.0 (devel/amd64-xtoolchain-gcc)
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/boot/efi/boot1/Makefile

Modified: head/sys/boot/efi/boot1/Makefile
==============================================================================
--- head/sys/boot/efi/boot1/Makefile	Tue Mar 28 21:35:18 2017	(r316109)
+++ head/sys/boot/efi/boot1/Makefile	Tue Mar 28 21:39:24 2017	(r316110)
@@ -20,7 +20,11 @@ CWARNFLAGS.zfs_module.c += -Wno-sign-com
 CWARNFLAGS.zfs_module.c += -Wno-unused-parameter
 CWARNFLAGS.zfs_module.c += -Wno-unused-function
 CWARNFLAGS.skein.c += -Wno-cast-align
+.if ${COMPILER_TYPE} == "clang"
 CWARNFLAGS.skein.c += -Wno-missing-variable-declarations
+.else if ${COMPILER_TYPE} == "gcc"
+CWARNFLAGS.skein.c += -Wno-missing-declarations
+.endif
 .endif
 
 # architecture-specific loader code


More information about the svn-src-all mailing list