Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/efiboot/bootx64 Fix clang build after pa...



details:   https://anonhg.NetBSD.org/src/rev/7bd4fe022a83
branches:  trunk
changeset: 970358:7bd4fe022a83
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 21 18:43:47 2020 +0000

description:
Fix clang build after packed lfs64 accessor change.

diffstat:

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

diffs (19 lines):

diff -r 65b18b7d02d0 -r 7bd4fe022a83 sys/arch/i386/stand/efiboot/bootx64/Makefile
--- a/sys/arch/i386/stand/efiboot/bootx64/Makefile      Sat Mar 21 17:09:29 2020 +0000
+++ b/sys/arch/i386/stand/efiboot/bootx64/Makefile      Sat Mar 21 18:43:47 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2019/09/13 02:19:46 manu Exp $
+#      $NetBSD: Makefile,v 1.3 2020/03/21 18:43:47 riastradh Exp $
 
 PROG=          bootx64.efi
 OBJFMT=                pei-x86-64
@@ -9,4 +9,9 @@
 COPTS+=                -mno-red-zone
 CPPFLAGS+=     -DEFI_FUNCTION_WRAPPER
 
+# 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
+
 .include "${.CURDIR}/../Makefile.efiboot"



Home | Main Index | Thread Index | Old Index