Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot efiboot: add clang fix from i386/stand/efi...



details:   https://anonhg.NetBSD.org/src/rev/37a036a9d377
branches:  trunk
changeset: 850307:37a036a9d377
user:      tnn <tnn%NetBSD.org@localhost>
date:      Wed Apr 01 10:45:44 2020 +0000

description:
efiboot: add clang fix from i386/stand/efiboot/bootx64/Makefile here too

diffstat:

 sys/stand/efiboot/Makefile.efiboot |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 1142dec973f6 -r 37a036a9d377 sys/stand/efiboot/Makefile.efiboot
--- a/sys/stand/efiboot/Makefile.efiboot        Wed Apr 01 08:21:38 2020 +0000
+++ b/sys/stand/efiboot/Makefile.efiboot        Wed Apr 01 10:45:44 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.efiboot,v 1.10 2020/01/25 11:24:20 jmcneill Exp $
+# $NetBSD: Makefile.efiboot,v 1.11 2020/04/01 10:45:44 tnn Exp $
 
 S=             ${.CURDIR}/../../..
 
@@ -87,6 +87,11 @@
 #CPPFLAGS+= -DRARP_DEBUG
 #CPPFLAGS+= -DRPC_DEBUG
 
+# Follow the suit of Makefile.kern.inc; needed for the lfs64 union
+# accessors -- they don't actually dereference the resulting pointer,
+# just use it for type-checking.
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
 SAMISCCPPFLAGS+= -DLIBSA_PRINTF_LONGLONG_SUPPORT
 SAMISCCPPFLAGS+= -DLIBSA_PRINTF_WIDTH_SUPPORT
 SAMISCCPPFLAGS+= -D"cdb2devb(bno)=(bno)"



Home | Main Index | Thread Index | Old Index