Date: Tue, 28 Mar 2017 21:39:25 +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: r316110 - head/sys/boot/efi/boot1 Message-ID: <201703282139.v2SLdPtn099847@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703282139.v2SLdPtn099847>