Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/stand/boot Appease clang -Waddress-of-packed-...
details: https://anonhg.NetBSD.org/src/rev/095ef4c4d097
branches: trunk
changeset: 933999:095ef4c4d097
user: rin <rin%NetBSD.org@localhost>
date: Wed Jun 03 02:51:39 2020 +0000
description:
Appease clang -Waddress-of-packed-member for <ufs/lfs/lfs_accessors.h>,
in the same manner as done for sparc64; pointer substitution is just for
sanity check and harmless there.
diffstat:
sys/arch/sparc/stand/boot/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 2e1366c78886 -r 095ef4c4d097 sys/arch/sparc/stand/boot/Makefile
--- a/sys/arch/sparc/stand/boot/Makefile Wed Jun 03 02:07:52 2020 +0000
+++ b/sys/arch/sparc/stand/boot/Makefile Wed Jun 03 02:51:39 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2017/04/28 13:38:35 christos Exp $
+# $NetBSD: Makefile,v 1.43 2020/06/03 02:51:39 rin Exp $
STRIPFLAG=
PROGSOURCE= boot.c net.c netif_sun.c conf.c openfirm.c bootinfo.c \
@@ -14,6 +14,11 @@
INCLUDE_LIBZ= yes
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
+# 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 "../Makefile.buildboot"
.if ${MACHINE} == sparc64
Home |
Main Index |
Thread Index |
Old Index